From a64e96aad9be7767cb26271ab281b79114f6746d Mon Sep 17 00:00:00 2001 From: no92 Date: Mon, 23 Jan 2023 21:36:58 +0100 Subject: [PATCH] xbstrap: print help when no command is provided --- xbstrap/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,