make command module error when no -a more obvious as command is the default module and someone
may forget about -a. The CLI already warns about no host pattern by pulling up usage.
This commit is contained in:
parent
7638c0ecf8
commit
35d498aeba
1 changed files with 1 additions and 1 deletions
2
command
2
command
|
@ -31,7 +31,7 @@ import traceback
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
print json.dumps({
|
print json.dumps({
|
||||||
"failed" : True,
|
"failed" : True,
|
||||||
"msg" : "at least a command name is required"
|
"msg" : "the command module requires arguments (-a)"
|
||||||
})
|
})
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue