Commit b6a4e62c authored by Leigh B. Stoller's avatar Leigh B. Stoller

Patch from Jason Shupe: "Here's a quick patch for loghole.in which

issues an error message when folks try to use the -a/--all flag and
the sync action at the same time"
parent 7d820461
......@@ -2312,6 +2312,12 @@ try:
pass
elif opt in ("-a", "--all"):
all_experiments = True
if 'get' or 'sync' in ACTIONS:
raise getopt.error(
"\nError: You cannot use -a/--all and sync together. When using the 'sync' action\n"
" you must specify an experiment with the -e flag or the --experiment flag\n"
" or be in an experiment directory. \n")
pass
pass
elif opt in ("-P", "--port"):
XMLRPC_PORT = int(val)
......
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