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 23, 2023
1 parent f9c2b64 commit 5d07769
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 5d07769

Please sign in to comment.