From 65ae28e05d24721511fa050ee7c11a673f103a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=92=90?= Date: Fri, 16 Aug 2024 15:43:55 +0800 Subject: [PATCH] Modify the check_perf_enable_value function --- common/tool_cmd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/tool_cmd.py b/common/tool_cmd.py index ad9a9ea..f1bc2c7 100644 --- a/common/tool_cmd.py +++ b/common/tool_cmd.py @@ -65,6 +65,10 @@ class ToolCmd: ival = int(val) except ValueError: raise argparse.ArgumentTypeError("invalid value, should set to 1, default 1 if no value set") + + #if ival not in [1,2]: + if ival != 1: + raise argparse.ArgumentTypeError("invalid value, should set to 1, default 1 if not value set") return ival -- Gitee