cli: Run onecmd if any arg is passed Signed-off-by: Rohit Yadav <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0d62549d Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0d62549d Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0d62549d Branch: refs/heads/api_entity Commit: 0d62549d61acf9534a7b7e7780241a217e1de20f Parents: 4ad5d1a Author: Rohit Yadav <[email protected]> Authored: Wed Mar 20 13:14:09 2013 +0530 Committer: Rohit Yadav <[email protected]> Committed: Wed Mar 20 13:14:09 2013 +0530 ---------------------------------------------------------------------- tools/cli/cloudmonkey/cloudmonkey.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0d62549d/tools/cli/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index a95ab9e..94006c9 100644 --- a/tools/cli/cloudmonkey/cloudmonkey.py +++ b/tools/cli/cloudmonkey/cloudmonkey.py @@ -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()
