This commit is contained in:
Kovid Goyal 2007-07-14 18:50:31 +00:00
parent e07305bcac
commit 605ff18508
2 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,7 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
''' E-book management software''' ''' E-book management software'''
__version__ = "0.3.71" __version__ = "0.3.72"
__docformat__ = "epytext" __docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>" __author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
__appname__ = 'libprs500' __appname__ = 'libprs500'

View File

@ -1411,12 +1411,11 @@ def option_parser(parser=None, usage='''Usage: %prog [options] mybook.[html|rar|
def parse_options(argv=None, cli=True, parser=None): def parse_options(argv=sys.argv[1:], cli=True, parser=None):
""" CLI for html -> lrf conversions """ """ CLI for html -> lrf conversions """
parser = option_parser(parser) parser = option_parser(parser)
if not argv:
argv = sys.argv[1:]
options, args = parser.parse_args(args=argv) options, args = parser.parse_args(args=argv)
if len(args) != 1: if len(args) != 1:
if cli: if cli:
parser.print_help() parser.print_help()