Skip to content

Commit

Permalink
print help when there is no CLI argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rgutzen committed Nov 28, 2023
1 parent 75fc4a5 commit a9c25ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cobrawap/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def main():
log.info("executing Cobrawap block")
run_block(**vars(args), block_args=unknown)

elif args.command is None:
CLI.print_help(sys.stderr)
CLI.parse_args()

else:
log.info(f"{args.command} not known!")

Expand Down

0 comments on commit a9c25ed

Please sign in to comment.