Skip to content

Commit

Permalink
print proper help message if no args passed
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming committed Feb 16, 2024
1 parent 353d20f commit 9c33fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uenv-image → img
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ def uenv_record_path(record):
if __name__ == "__main__":
parser = make_argparser()
args = parser.parse_args()
if args.command is None:
parser.print_help()
sys.exit()

global colored_output
colored_output = use_colored_output(args.no_color)
Expand Down

0 comments on commit 9c33fa2

Please sign in to comment.