Skip to content

Commit 0b7a4e0

Browse files
committed
cli: Check args from optparser and not sys.argv
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 217ebf2 commit 0b7a4e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/cli/cloudmonkey/cloudmonkey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def main():
489489
print __description__, "(%s)" % __projecturl__
490490

491491
shell = CloudMonkeyShell(sys.argv[0], options.cfile)
492-
if len(sys.argv) > 1:
492+
if len(args) > 1:
493493
shell.onecmd(' '.join(args))
494494
else:
495495
shell.cmdloop()

0 commit comments

Comments
 (0)