mirror of https://github.com/apache/cloudstack.git
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…
Reference in New Issue