Skip to content

Commit

Permalink
Merge pull request #39 from lgeiger/cli
Browse files Browse the repository at this point in the history
Show help message if law CLI executes without command
  • Loading branch information
riga committed Mar 6, 2018
2 parents 8d323bf + db3a33e commit cb0f3cf
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 cb0f3cf

Please sign in to comment.