mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
cli: Check args from optparser and not sys.argv
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
217ebf20a6
commit
0b7a4e04aa
@ -489,7 +489,7 @@ def main():
|
||||
print __description__, "(%s)" % __projecturl__
|
||||
|
||||
shell = CloudMonkeyShell(sys.argv[0], options.cfile)
|
||||
if len(sys.argv) > 1:
|
||||
if len(args) > 1:
|
||||
shell.onecmd(' '.join(args))
|
||||
else:
|
||||
shell.cmdloop()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user