diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-03-03 10:17:09 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-03-03 11:17:05 +0100 |
commit | 63ef83806d052ed389b8dcfeffc1d0cf0598a1d8 (patch) | |
tree | 2ebceff0cbf96f3f62a1cdaa9c688c00783671e6 /cli/objects | |
parent | 2b7d6b081ce7aa7cd10a7301f06eb2b8880c946a (diff) |
Rename --room param to --room-id in "set modes"
--room will be used to specify the room name instead of the id.
Diffstat (limited to 'cli/objects')
-rw-r--r-- | cli/objects/modes.py | 6 |
1 files 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: |