diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-02-05 13:27:31 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-02-05 13:29:57 +0100 |
commit | 569b0107c1d81f9a632e9f8c461b1911c0a15742 (patch) | |
tree | 6d4cd5cc948155059dc929879d530a6bef7df817 /cli/objects/center.py | |
parent | 4881610656dbc322804ca6eba1c8d5922cd8ac09 (diff) |
ogcli: validate integer type in every --id argument
missing validation of --id, user needs to supply an integer
Diffstat (limited to 'cli/objects/center.py')
-rw-r--r-- | cli/objects/center.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/objects/center.py b/cli/objects/center.py index 27917ff..0318a57 100644 --- a/cli/objects/center.py +++ b/cli/objects/center.py @@ -29,6 +29,7 @@ class OgCenter(): def delete_center(rest, args): parser = argparse.ArgumentParser(prog='ogcli delete center') parser.add_argument('--id', + type=int, nargs='?', required=True, help='center id in database') |