Commit 19fdb730 by Michael DeHaan

have command module raise an error if no arguments are supplied

parent 1427ade3
......@@ -28,6 +28,13 @@ import sys
import datetime
import traceback
if len(sys.argv) == 1:
print json.dumps({
"failed" : True,
"msg" : "at least a command name is required"
})
sys.exit(1)
args = sys.argv[1:]
startd = datetime.datetime.now()
......
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