Clarify some command line report options.
svn: r17794
This commit is contained in:
parent
86d35f1bb0
commit
d449165c99
@ -4,7 +4,7 @@
|
||||
# Copyright (C) 2001-2007 Donald N. Allingham
|
||||
# Copyright (C) 2008 Lukasz Rymarczyk
|
||||
# Copyright (C) 2008 Raphael Ackermann
|
||||
# Copyright (C) 2008 Brian G. Matherly
|
||||
# Copyright (C) 2008-2011 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@ -99,12 +99,16 @@ def _convert_str_to_match_type(str_val, type_val):
|
||||
elif ret_type == bool:
|
||||
if str_val == str(True):
|
||||
return True
|
||||
elif str_val == str(False):
|
||||
return False
|
||||
else:
|
||||
print "%s is not a boolean-- try 'True' or 'False'" % str_val
|
||||
return False
|
||||
|
||||
elif ret_type == list:
|
||||
ret_val = []
|
||||
if not ( str_val.startswith("[") and str_val.endswith("]") ):
|
||||
print "%s is not a list" % str_val
|
||||
print "%s is not a list-- try: [%s]" % (str_val, str_val)
|
||||
return ret_val
|
||||
|
||||
entry = ""
|
||||
|
Loading…
Reference in New Issue
Block a user