diff options
Diffstat (limited to 'clusterman/__main__.py')
| -rw-r--r-- | clusterman/__main__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py index be2ea22..1d1bdad 100644 --- a/clusterman/__main__.py +++ b/clusterman/__main__.py @@ -21,6 +21,7 @@ def main(): # Exec node_cmd_list=node_subparsers.add_parser("exec") node_cmd_list.add_argument("-g", "--group" ,help="Group to run the command on") + node_cmd_list.add_argument("-l", "--login" ,help="Use ssh username and password") node_cmd_list.add_argument("cmd",help="Command to run",nargs=argparse.REMAINDER) ##### Frontend commands ##### @@ -60,9 +61,9 @@ def main(): node.ls() elif args.command == "exec": if args.group: - node.exec(args.cmd,args.group) + node.exec(args.cmd,args.group,args.login) else: - node.exec(args.cmd) + node.exec(args.cmd,args.login) else: target_node.print_help(sys.stderr) sys.exit(1) |
