mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
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:
@@ -31,7 +31,7 @@ import traceback
|
||||
if len(sys.argv) == 1:
|
||||
print json.dumps({
|
||||
"failed" : True,
|
||||
"msg" : "at least a command name is required"
|
||||
"msg" : "the command module requires arguments (-a)"
|
||||
})
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user