def option_parser(): parser = _option_parser(_('''\ %prog [options] [path_to_ebook] Launch the main calibre Graphical User Interface and optionally add the e-book at path_to_ebook to the database. ''')) parser.add_option('--with-library', default=None, action='store', help=_('Use the library located at the specified path.')) parser.add_option('--start-in-tray', default=False, action='store_true', help=_('Start minimized to system tray.')) parser.add_option('-v', '--verbose', default=0, action='count', help=_('Ignored, do not use. Present only for legacy reasons')) parser.add_option('--no-update-check', default=False, action='store_true', help=_('Do not check for updates')) parser.add_option('--ignore-plugins', default=False, action='store_true', help=_('Ignore custom plugins, useful if you installed a plugin' ' that is preventing calibre from starting')) parser.add_option('-s', '--shutdown-running-calibre', default=False, action='store_true', help=_('Cause a running calibre instance, if any, to be' ' shutdown. Note that if there are running jobs, they ' 'will be silently aborted, so use with care.')) setup_gui_option_parser(parser) return parser
def option_parser(): parser = _option_parser(_('''\ %prog [opts] [path_to_ebook] Launch the main calibre Graphical User Interface and optionally add the ebook at path_to_ebook to the database. ''')) parser.add_option('--with-library', default=None, action='store', help=_('Use the library located at the specified path.')) parser.add_option('--start-in-tray', default=False, action='store_true', help=_('Start minimized to system tray.')) parser.add_option('-v', '--verbose', default=0, action='count', help=_('Ignored, do not use. Present only for legacy reasons')) parser.add_option('--no-update-check', default=False, action='store_true', help=_('Do not check for updates')) parser.add_option('--ignore-plugins', default=False, action='store_true', help=_('Ignore custom plugins, useful if you installed a plugin' ' that is preventing calibre from starting')) parser.add_option('-s', '--shutdown-running-calibre', default=False, action='store_true', help=_('Cause a running calibre instance, if any, to be' ' shutdown. Note that if there are running jobs, they ' 'will be silently aborted, so use with care.')) setup_gui_option_parser(parser) return parser
def option_parser(): parser = _option_parser(_('''\ %prog [options] [path_to_ebook or calibre url ...] Launch the main calibre Graphical User Interface and optionally add the e-book at path_to_ebook to the database. You can also specify calibre URLs to perform various different actions, than just adding books. For example: calibre://view-book/test_library/1842/epub Will open the book with id 1842 in the EPUB format from the library "test_library" in the calibre E-book viewer. Library names are the folder names of the libraries with spaces replaced by underscores. A full description of the various URL based actions is in the User Manual. ''')) parser.add_option('--with-library', default=None, action='store', help=_('Use the library located at the specified path.')) parser.add_option('--start-in-tray', default=False, action='store_true', help=_('Start minimized to system tray.')) parser.add_option('-v', '--verbose', default=0, action='count', help=_('Ignored, do not use. Present only for legacy reasons')) parser.add_option('--no-update-check', default=False, action='store_true', help=_('Do not check for updates')) parser.add_option('--ignore-plugins', default=False, action='store_true', help=_('Ignore custom plugins, useful if you installed a plugin' ' that is preventing calibre from starting')) parser.add_option('-s', '--shutdown-running-calibre', default=False, action='store_true', help=_('Cause a running calibre instance, if any, to be' ' shutdown. Note that if there are running jobs, they ' 'will be silently aborted, so use with care.')) setup_gui_option_parser(parser) return parser
def option_parser(): parser = _option_parser( _( """\ %prog [opts] [path_to_ebook] Launch the main calibre Graphical User Interface and optionally add the ebook at path_to_ebook to the database. """ ) ) parser.add_option( "--with-library", default=None, action="store", help=_("Use the library located at the specified path.") ) parser.add_option("--start-in-tray", default=False, action="store_true", help=_("Start minimized to system tray.")) parser.add_option( "-v", "--verbose", default=0, action="count", help=_("Ignored, do not use. Present only for legacy reasons") ) parser.add_option("--no-update-check", default=False, action="store_true", help=_("Do not check for updates")) parser.add_option( "--ignore-plugins", default=False, action="store_true", help=_("Ignore custom plugins, useful if you installed a plugin" " that is preventing calibre from starting"), ) parser.add_option( "-s", "--shutdown-running-calibre", default=False, action="store_true", help=_( "Cause a running calibre instance, if any, to be" " shutdown. Note that if there are running jobs, they " "will be silently aborted, so use with care." ), ) setup_gui_option_parser(parser) return parser