send a CLI error string to stderr

svn: r21849
This commit is contained in:
Paul Franklin 2013-04-02 05:07:41 +00:00
parent 0196351c25
commit 4be0f93da9

View File

@ -380,9 +380,10 @@ class OptionHandler(object):
option_data and option_data and
option_data[0] in docgen_names ): option_data[0] in docgen_names ):
print(_("Option '%(opt_name)s' is present in %(file)s\n" print(_("Option '%(opt_name)s' is present in %(file)s\n"
" but is not known to the module. Ignoring...") % \ " but is not known to the module. Ignoring...") %
{ 'opt_name' : option_name, { 'opt_name' : option_name,
'file' : self.option_list_collection.filename } ) 'file' : self.option_list_collection.filename },
file=sys.stderr )
options.pop(option_name) options.pop(option_name)
# Then we set common options from whatever was found # Then we set common options from whatever was found