Remove unnecessary options from pdf manipulation routines

This commit is contained in:
John Schember 2009-03-29 09:34:43 -04:00
parent ffa5f36fae
commit 9a81882d4f
4 changed files with 1 additions and 7 deletions

View File

@ -21,7 +21,7 @@ COMMANDS = {
def config(defaults=None): def config(defaults=None):
desc = _('Options to control the transformation of pdf') desc = _('Options to control the transformation of pdf')
if defaults is None: if defaults is None:
c = Config('trimpdf', desc) c = Config('manipulatepdf', desc)
else: else:
c = StringConfig(defaults, desc) c = StringConfig(defaults, desc)
return c return c

View File

@ -21,8 +21,6 @@ def config(defaults=None):
c = Config('mergepdf', desc) c = Config('mergepdf', desc)
else: else:
c = StringConfig(defaults, desc) c = StringConfig(defaults, desc)
c.add_opt('verbose', ['-v', '--verbose'], default=0, action='count',
help=_('Be verbose, useful for debugging. Can be specified multiple times for greater verbosity.'))
c.add_opt('output', ['-o', '--output'], default='merged.pdf', c.add_opt('output', ['-o', '--output'], default='merged.pdf',
help=_('Path to output file. By default a file is created in the current directory.')) help=_('Path to output file. By default a file is created in the current directory.'))
return c return c

View File

@ -21,8 +21,6 @@ def config(defaults=None):
c = Config('splitpdf', desc) c = Config('splitpdf', desc)
else: else:
c = StringConfig(defaults, desc) c = StringConfig(defaults, desc)
c.add_opt('verbose', ['-v', '--verbose'], default=0, action='count',
help=_('Be verbose, useful for debugging. Can be specified multiple times for greater verbosity.'))
c.add_opt('output', ['-o', '--output'], default='split.pdf', c.add_opt('output', ['-o', '--output'], default='split.pdf',
help=_('Path to output file. By default a file is created in the current directory. \ help=_('Path to output file. By default a file is created in the current directory. \
The file name will be the base name for the output.')) The file name will be the base name for the output.'))

View File

@ -16,8 +16,6 @@ def config(defaults=None):
c = Config('trimpdf', desc) c = Config('trimpdf', desc)
else: else:
c = StringConfig(defaults, desc) c = StringConfig(defaults, desc)
c.add_opt('verbose', ['-v', '--verbose'], default=0, action='count',
help=_('Be verbose, useful for debugging. Can be specified multiple times for greater verbosity.'))
c.add_opt('output', ['-o', '--output'],default='cropped.pdf', c.add_opt('output', ['-o', '--output'],default='cropped.pdf',
help=_('Path to output file. By default a file is created in the current directory.')) help=_('Path to output file. By default a file is created in the current directory.'))
c.add_opt('bottom_left_x', [ '-x', '--leftx'], default=default_crop, c.add_opt('bottom_left_x', [ '-x', '--leftx'], default=default_crop,