Skip to content

Commit

Permalink
xbstrap: print help when no command is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Jan 31, 2023
1 parent 3c79f76 commit a64e96a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbstrap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a64e96a

Please sign in to comment.