diff --git a/src/calibre/srv/opts.py b/src/calibre/srv/opts.py index 6713064ed0..c99e826e26 100644 --- a/src/calibre/srv/opts.py +++ b/src/calibre/srv/opts.py @@ -207,7 +207,7 @@ def opt_to_cli_help(opt): def bool_callback(option, opt_str, value, parser, *args, **kwargs): - setattr(parser.values, option.dest, opt_str.startswith('--enable')) + setattr(parser.values, option.dest, opt_str.startswith('--enable-')) def boolean_option(add_option, opt):