From 63ef83806d052ed389b8dcfeffc1d0cf0598a1d8 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Wed, 3 Mar 2021 10:17:09 +0100 Subject: Rename --room param to --room-id in "set modes" --room will be used to specify the room name instead of the id. --- cli/objects/modes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/objects/modes.py b/cli/objects/modes.py index a46cae7..53cd79a 100644 --- a/cli/objects/modes.py +++ b/cli/objects/modes.py @@ -25,12 +25,12 @@ class OgModes(): default=[], required=False, help='Clients from given center') - group.add_argument('--room', + group.add_argument('--room-id', type=int, action='append', default=[], required=False, - help='Clients from given room') + help='Clients from given room id') group.add_argument('--client', action='append', default=[], @@ -69,7 +69,7 @@ class OgModes(): for center in parsed_args.center: center_scope = scope_lookup(center, 'center', scopes) ips.update(ips_in_scope(center_scope)) - for room in parsed_args.room: + for room in parsed_args.room_id: room_scope = scope_lookup(room, 'room', scopes) ips.update(ips_in_scope(room_scope)) for l in parsed_args.client: -- cgit v1.2.3-18-g5258