Skip to content

Commit

Permalink
Fix exception on invocation with no args (elastic#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
drawlerr authored Mar 3, 2020
1 parent 97a02ea commit 21a81af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions night_rally/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ def valid_date(v):
title="subcommands",
dest="subcommand",
help="")
# the keyword argument in #add_subparsers() only works in Python 3.7+.
# See https://docs.python.org/3.7/library/argparse.html#argparse.ArgumentParser.add_subparsers
subparsers.required = True

# list races --max-results=20
# list annotations --max-results=20
Expand Down

0 comments on commit 21a81af

Please sign in to comment.