diff --git a/xbstrap/__init__.py b/xbstrap/__init__.py index ef5c7d4..3b5b09b 100755 --- a/xbstrap/__init__.py +++ b/xbstrap/__init__.py @@ -991,7 +991,9 @@ def main(): elif args.command == "lsp": do_lsp(args) else: - assert not "Unexpected command" + # invalid command are already handled by argparse; + # this only gets tripped with no command provided + main_parser.print_help() except ( xbstrap.base.ExecutionFailureError, xbstrap.base.PlanFailureError,