From 569b0107c1d81f9a632e9f8c461b1911c0a15742 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 5 Feb 2024 13:27:31 +0100 Subject: ogcli: validate integer type in every --id argument missing validation of --id, user needs to supply an integer --- cli/objects/center.py | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/objects/center.py') 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') -- cgit v1.2.3-18-g5258