mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'patch-1' of https://github.com/Rromotpd/calibre
This commit is contained in:
commit
2bc8e3d6ff
4
setup.py
4
setup.py
@ -65,7 +65,7 @@ def main(args=sys.argv):
|
|||||||
print('\nWhere command is one of:')
|
print('\nWhere command is one of:')
|
||||||
print()
|
print()
|
||||||
for x in sorted(commands.__all__):
|
for x in sorted(commands.__all__):
|
||||||
print('%-20s -' % x, end=' ')
|
print('{:20} -'.format(x), end=' ')
|
||||||
c = getattr(commands, x)
|
c = getattr(commands, x)
|
||||||
desc = getattr(c, 'short_description', c.description)
|
desc = getattr(c, 'short_description', c.description)
|
||||||
print(desc)
|
print(desc)
|
||||||
@ -85,7 +85,7 @@ def main(args=sys.argv):
|
|||||||
parser = option_parser()
|
parser = option_parser()
|
||||||
command.add_all_options(parser)
|
command.add_all_options(parser)
|
||||||
parser.set_usage(
|
parser.set_usage(
|
||||||
'Usage: python setup.py %s [options]\n\n' % args[1] + command.description)
|
'Usage: python setup.py {} [options]\n\n'.format(args[1]) + command.description)
|
||||||
|
|
||||||
opts, args = parser.parse_args(args)
|
opts, args = parser.parse_args(args)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user