6838: report cli crash ignoring unknown param

Port my fix from gramps34

svn: r22595
This commit is contained in:
Vassilii Khachaturov 2013-06-24 18:14:42 +00:00
parent c3b82c944e
commit e3f6ed1f17

View File

@ -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 "