From 0242bb23d673e197d374ea53a1d2dcced2898ea8 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Thu, 19 Nov 2009 23:57:17 +0100 Subject: tools/trace: assert if the program is not provided --- tools/trace/trace.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/trace/trace.py b/tools/trace/trace.py index e6a2c756..9fe3533e 100644 --- a/tools/trace/trace.py +++ b/tools/trace/trace.py @@ -28,6 +28,8 @@ parser.add_option("-c", "--callback", dest="cb", help="The callback file containing the functions" + INTER_MODE) [options, args] = parser.parse_args() +if options.type == "inter": + assert args if options.type == 'create': cre = TCreator (options.infile, options.outfile, options.enum_name) -- cgit v1.2.3