Skip to content
Snippets Groups Projects
Commit 5a52f6eb authored by ale's avatar ale
Browse files

Abort early if no command is specified

Replaces an ugly AttributeError stack trace if you invoke the command
without arguments.
parent fdc1c3e5
No related branches found
No related tags found
No related merge requests found
......@@ -209,9 +209,10 @@ specified as '-'.
args = parser.parse_args()
cmd = args.subparser
if not cmd:
parser.error('no command specified')
if not args.url:
parser.error('Must specify --url')
parser.error('must specify --url')
logging.basicConfig(
format='%(message)s',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment