improve error message when missing report name

svn: r15048
This commit is contained in:
Raphael Ackermann 2010-04-06 19:59:58 +00:00
parent 8bcb3127aa
commit 3e7f5993e3

View File

@ -472,7 +472,7 @@ class ArgHandler(object):
# name exists, but is not in the list of valid report names # name exists, but is not in the list of valid report names
msg = "Unknown report name." msg = "Unknown report name."
else: else:
msg = "Report name not given. Please use -p name=reportname." msg = "Report name not given. Please use one of [-p|--options] name=reportname."
print "%s\n Available names are:" % msg print "%s\n Available names are:" % msg
for pdata in _cl_list: for pdata in _cl_list:
@ -509,7 +509,7 @@ class ArgHandler(object):
return return
msg = "Unknown tool name." msg = "Unknown tool name."
else: else:
msg = "Tool name not given. Please use -p name=toolname." msg = "Tool name not given. Please use one of [-p|--options] name=toolname."
print "%s\n Available names are:" % msg print "%s\n Available names are:" % msg
for pdata in _cli_tool_list: for pdata in _cli_tool_list: