Commit 96bbf241 authored by Francesco Poldi's avatar Francesco Poldi

Extended check-args #474

parent 93d9fb55
......@@ -32,9 +32,15 @@ def check(args):
if args.userid:
error("Contradicting Args",
"--userid and -u cannot be used together.")
if args.all:
error("Contradicting Args",
"--all and -u cannot be used together")
elif args.search is None:
if (args.geo or args.near) is None:
error("Error", "Please use at least -u, -s, -g or --near.")
elif args.all and args.userid:
error("Contradicting Args",
"--all and --userid cannot be used together")
if args.output is None:
if args.csv:
error("Error", "Please specify an output file (Example: -o file.csv).")
......
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