From c217ff5e7b4d9be35e604d000506d2c60d52bd59 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 20 Nov 2023 21:09:23 +0100 Subject: Minor changes --- clusterman/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clusterman/__main__.py') 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) -- cgit v1.2.3