pkgs/clan: Fix common command flags registering

Fix common command flags registering.
Register the common command flags before triggering autocomplete,
that way we can use the flags in the autocompletions themselves.
This commit is contained in:
a-kenji
2025-07-22 19:56:07 +02:00
parent cacd853374
commit 04f36a4cb1

View File

@@ -482,11 +482,11 @@ For more detailed information, visit: {help_hyperlink("getting-started", "https:
)
state.register_parser(parser_state)
register_common_flags(parser)
if argcomplete:
argcomplete.autocomplete(parser, exclude=["morph", "network", "net"])
register_common_flags(parser)
return parser