6838: report cli crash ignoring unknown param
merge from gramps40 branch svn: r22596
This commit is contained in:
parent
6d9fbe0238
commit
242fd1372d
@ -422,7 +422,7 @@ class CommandLineReport(object):
|
|||||||
self.options_help[name].append(option.get_help())
|
self.options_help[name].append(option.get_help())
|
||||||
else:
|
else:
|
||||||
print(_("Unknown option: %s") % option, file=sys.stderr)
|
print(_("Unknown option: %s") % option, file=sys.stderr)
|
||||||
print(_(" Valid options are:"),
|
print(_(" Valid options are:") +
|
||||||
", ".join(list(self.options_dict.keys())),
|
", ".join(list(self.options_dict.keys())),
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
print(_(" Use '%(donottranslate)s' to see description "
|
print(_(" Use '%(donottranslate)s' to see description "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user