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