mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-28 07:43:59 +00:00
Fix option name in error message.
This commit is contained in:
parent
d78503cdd5
commit
7f23594611
1 changed files with 2 additions and 2 deletions
|
|
@ -550,13 +550,13 @@ if options.fileoutput:
|
|||
if ftype not in linkcheck.logger.Loggers:
|
||||
print_usage(
|
||||
_("Unknown logger type %(type)r in %(output)r for option %(option)s") % \
|
||||
{"type": ftype, "output": options.output,
|
||||
{"type": ftype, "output": options.fileoutput,
|
||||
"option": "'-F, --file-output'"})
|
||||
if ftype != 'none' and 'encoding' in ns and \
|
||||
not has_encoding(ns['encoding']):
|
||||
print_usage(
|
||||
_("Unknown encoding %(encoding)r in %(output)r for option %(option)s") % \
|
||||
{"encoding": ns['encoding'], "output": options.output,
|
||||
{"encoding": ns['encoding'], "output": options.fileoutput,
|
||||
"option": "'-F, --file-output'"})
|
||||
logger = config.logger_new(ftype, **ns)
|
||||
config['fileoutput'].append(logger)
|
||||
|
|
|
|||
Loading…
Reference in a new issue