summaryrefslogtreecommitdiff
path: root/clusterman/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'clusterman/__main__.py')
-rw-r--r--clusterman/__main__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py
index 5496ba5..598ea7a 100644
--- a/clusterman/__main__.py
+++ b/clusterman/__main__.py
@@ -17,6 +17,7 @@ def main():
node_cmd_scan.add_argument("-t", "--timeout" ,help="Timeout", type=float)
# List
node_cmd_list=node_subparsers.add_parser("list")
+ node_cmd_list.add_argument("-g", "--group" ,help="Group to list")
##### Frontend commands #####
target_frontend = subparsers.add_parser("frontend")
@@ -49,7 +50,10 @@ def main():
else:
node.check(CONF["timeout"])
elif args.command == "list":
- node.ls()
+ if args.group:
+ node.ls(args.group)
+ else:
+ node.ls()
else:
target_node.print_help(sys.stderr)
sys.exit(1)