From f88bcf78ac9ffefcedfb4e108b703dac40ca5839 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Fri, 20 May 2022 08:58:16 +0200 Subject: 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. --- cli/objects/modes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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, -- cgit v1.2.3-18-g5258