Skip to content

Commit

Permalink
Fix --only-show-errors on root parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli committed Nov 12, 2021
1 parent 87ddbcb commit afe899b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knack/invocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def execute(self, args):
self.parser.load_command_table(self.commands_loader)
self.cli_ctx.raise_event(EVENT_INVOKER_CMD_TBL_LOADED, parser=self.parser)

arg_check = [a for a in args if a not in ['--verbose', '--debug', '--only-show-warnings']]
arg_check = [a for a in args if a not in ['--verbose', '--debug', '--only-show-errors']]
if not arg_check:
self.cli_ctx.completion.enable_autocomplete(self.parser)
subparser = self.parser.subparsers[tuple()]
Expand Down

0 comments on commit afe899b

Please sign in to comment.