diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-11-20 21:09:23 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-11-20 21:09:23 +0100 |
| commit | c217ff5e7b4d9be35e604d000506d2c60d52bd59 (patch) | |
| tree | 376a0972729fd1ecebfd419edc93e5c99f9ed6d4 /clusterman/__main__.py | |
| parent | c23a43fb31f902d8267b7ced1097c5619959bbc5 (diff) | |
Minor changes
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) |
