have command module raise an error if no arguments are supplied

reviewable/pr18780/r1
Michael DeHaan 13 years ago
parent a6b1f6c91f
commit 0491fa1dda

@ -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()

Loading…
Cancel
Save