mirror of https://github.com/apache/cloudstack.git
cli: Run onecmd if any arg is passed
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
4ad5d1a4f5
commit
0d62549d61
|
|
@ -490,7 +490,7 @@ def main():
|
|||
sys.exit(0)
|
||||
|
||||
shell = CloudMonkeyShell(sys.argv[0], options.cfile)
|
||||
if len(args) > 1:
|
||||
if len(args) > 0:
|
||||
shell.onecmd(' '.join(args))
|
||||
else:
|
||||
shell.cmdloop()
|
||||
|
|
|
|||
Loading…
Reference in New Issue