Skip to content

Commit

Permalink
Print usage when no args provided (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Jun 29, 2022
1 parent 16ea3ee commit 06fd2f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions maestrowf/maestro.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ def setup_argparser():
description="The Maestro Workflow Conductor for specifying, launching"
", and managing general workflows.",
formatter_class=RawTextHelpFormatter)
# This call applies a default function to the main parser as described
# here: https://stackoverflow.com/a/61680800
parser.set_defaults(func=lambda args: parser.print_help())
subparsers = parser.add_subparsers(dest='subparser')

# subparser for a cancel subcommand
Expand Down

0 comments on commit 06fd2f2

Please sign in to comment.