summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-05-20 08:58:16 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-05-20 08:58:16 +0200
commitf88bcf78ac9ffefcedfb4e108b703dac40ca5839 (patch)
tree116441400bc671ee7df0af8c204e7a4175fa5b22
parent41170ec5f90148a02014155c75d5e1d8c7797c32 (diff)
set mode: fix --help
'set mode' --help does not show the correct program name: ogcli [-h] [--center-id CENTER_ID] [--room-id ROOM_ID] ^^^^^ [--client-ip CLIENT_IP] --mode MODE Adds full program name (ogcli set mode) in missing prog option when creating the argparse object.
-rw-r--r--cli/objects/modes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/objects/modes.py b/cli/objects/modes.py
index e350da7..8a9754e 100644
--- a/cli/objects/modes.py
+++ b/cli/objects/modes.py
@@ -18,7 +18,7 @@ class OgModes():
@staticmethod
def set_modes(rest, args):
- parser = argparse.ArgumentParser()
+ parser = argparse.ArgumentParser(prog='ogcli set mode')
group = parser.add_argument_group('clients', 'Client selection args')
group.add_argument('--center-id',
type=int,