summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-11-19 23:57:17 +0100
committerNélio Laranjeiro2009-11-19 23:57:17 +0100
commit0242bb23d673e197d374ea53a1d2dcced2898ea8 (patch)
treef9ea08c78c429ad4e55587e269b9685d8d760592 /tools
parent48e509336acdda1bb0a449c00bc7a8918fb9df85 (diff)
tools/trace: assert if the program is not provided
Diffstat (limited to 'tools')
-rw-r--r--tools/trace/trace.py2
1 files changed, 2 insertions, 0 deletions
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)