added mhtml support and fixed some bugs in the process

This commit is contained in:
2026-04-22 21:19:55 -07:00
parent 90787bd0a2
commit 67c272db4b
9 changed files with 564 additions and 66 deletions
+6
View File
@@ -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)),
}