mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3a063ee644
commit
2f5fa30b86
@ -75,7 +75,6 @@ def option_recommendation_to_cli_option(add_option, rec):
|
|||||||
opt = rec.option
|
opt = rec.option
|
||||||
switches = ['-'+opt.short_switch] if opt.short_switch else []
|
switches = ['-'+opt.short_switch] if opt.short_switch else []
|
||||||
switches.append('--'+opt.long_switch)
|
switches.append('--'+opt.long_switch)
|
||||||
flip_switches = ['italicize_common_cases', 'markup_chapter_headings', 'unwrap_lines', 'dehyphenate', 'fix_indents']
|
|
||||||
attrs = dict(dest=opt.name, help=opt.help,
|
attrs = dict(dest=opt.name, help=opt.help,
|
||||||
choices=opt.choices, default=rec.recommended_value)
|
choices=opt.choices, default=rec.recommended_value)
|
||||||
if isinstance(rec.recommended_value, type(True)):
|
if isinstance(rec.recommended_value, type(True)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user