Skip to content

Commit

Permalink
Show help message if law CLI executes without command
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeiger committed Mar 6, 2018
1 parent 185e279 commit db3a33e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion law/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ def run():
else:
args = parser.parse_args()

mods[args.command].execute(args)
if args.command:
mods[args.command].execute(args)
else:
parser.print_help()

0 comments on commit db3a33e

Please sign in to comment.