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
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment