diff --git a/common/tool_cmd.py b/common/tool_cmd.py index edd50146d13b54d773f8b87441de3da6bed61f79..6de497cebb9ad44c82ed220d7209410db7330349 100644 --- a/common/tool_cmd.py +++ b/common/tool_cmd.py @@ -29,6 +29,11 @@ class ToolCmd: return error_msg return error_msg + def __check_perf_pid(self, val): + if not Command.check_pid_list(val, False): + raise argparse.ArgumentTypeError("should set to -1 or existed process id") + return val + def args_help(self): #共享可选参数wpath ipath opath parent_parser = argparse.ArgumentParser(add_help=False)