6838: report cli crash ignoring unknown param

merge from gramps40 branch

svn: r22596
This commit is contained in:
Vassilii Khachaturov 2013-06-24 18:17:15 +00:00
parent 6d9fbe0238
commit 242fd1372d

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 "