def option_parser(): parser = config().option_parser('%prog '+ _( '''[options] Start the calibre content server. The calibre content server exposes your calibre library over the internet. The default interface allows you to browse you calibre library by categories. You can also access an interface optimized for mobile browsers at /mobile and an OPDS based interface for use with reading applications at /opds. The OPDS interface is advertised via BonJour automatically. ''' )) parser.add_option('--with-library', default=None, help=_('Path to the library folder to serve with the content server')) parser.add_option('--pidfile', default=None, help=_('Write process PID to the specified file')) parser.add_option('--daemonize', default=False, action='store_true', help='Run process in background as a daemon. No effect on windows.') parser.add_option('--restriction', '--virtual-library', default=None, help=_('Specifies a virtual library to be used for this invocation. ' 'This option overrides any per-library settings specified' ' in the GUI. For compatibility, if the value is not a ' 'virtual library but is a saved search, that saved search is used.')) parser.add_option('--auto-reload', default=False, action='store_true', help=_('Auto reload server when source code changes. May not' ' work in all environments.')) return parser
def option_parser(): parser = config().option_parser('%prog '+ _( '''[options] Start the calibre content server. The calibre content server exposes your calibre library over the internet. The default interface allows you to browse you calibre library by categories. You can also access an interface optimized for mobile browsers at /mobile and an OPDS based interface for use with reading applications at /opds. The OPDS interface is advertised via BonJour automatically. ''' )) parser.add_option('--with-library', default=None, help=_('Path to the library folder to serve with the content server')) parser.add_option('--pidfile', default=None, help=_('Write process PID to the specified file')) parser.add_option('--daemonize', default=False, action='store_true', help=_('Run process in background as a daemon. No effect on windows.')) parser.add_option('--restriction', '--virtual-library', default=None, help=_('Specifies a virtual library to be used for this invocation. ' 'This option overrides any per-library settings specified' ' in the GUI. For compatibility, if the value is not a ' 'virtual library but is a saved search, that saved search is used.' ' Also note that if you do not specify a restriction,' ' the value specified in the GUI (if any) will be used.')) parser.add_option('--auto-reload', default=False, action='store_true', help=_('Auto reload server when source code changes. May not' ' work in all environments.')) return parser