added mhtml support and fixed some bugs in the process
This commit is contained in:
@@ -122,6 +122,9 @@ def _normalize_arg(arg: Any) -> Dict[str, Any]:
|
||||
"choices": arg.get("choices", []) or [],
|
||||
"alias": arg.get("alias", ""),
|
||||
"variadic": arg.get("variadic", False),
|
||||
"query_key": arg.get("query_key", None),
|
||||
"query_aliases": arg.get("query_aliases", []) or [],
|
||||
"query_only": bool(arg.get("query_only", False)),
|
||||
"requires_db": bool(arg.get("requires_db", False)),
|
||||
}
|
||||
|
||||
@@ -134,6 +137,9 @@ def _normalize_arg(arg: Any) -> Dict[str, Any]:
|
||||
"choices": getattr(arg, "choices", []) or [],
|
||||
"alias": getattr(arg, "alias", ""),
|
||||
"variadic": getattr(arg, "variadic", False),
|
||||
"query_key": getattr(arg, "query_key", None),
|
||||
"query_aliases": getattr(arg, "query_aliases", []) or [],
|
||||
"query_only": bool(getattr(arg, "query_only", False)),
|
||||
"requires_db": bool(getattr(arg, "requires_db", False)),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user