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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user