port every console applications to ReplApplication
This commit is contained in:
parent
81706f23ad
commit
37a53b783a
17 changed files with 460 additions and 369 deletions
|
|
@ -50,9 +50,6 @@ class ConsoleApplication(BaseApplication):
|
|||
def __init__(self):
|
||||
self.enabled_backends = set()
|
||||
option_parser = OptionParser(self.SYNOPSIS, version=self._get_optparse_version())
|
||||
app_options = OptionGroup(option_parser, '%s Options' % self.APPNAME.capitalize())
|
||||
self.add_application_options(app_options)
|
||||
option_parser.add_option_group(app_options)
|
||||
|
||||
try:
|
||||
BaseApplication.__init__(self, option_parser=option_parser)
|
||||
|
|
@ -85,10 +82,6 @@ class ConsoleApplication(BaseApplication):
|
|||
formatting_options.add_option('--no-keys', dest='no_keys', action='store_true', help='do not display item keys')
|
||||
self._parser.add_option_group(formatting_options)
|
||||
|
||||
def add_application_options(self, group):
|
||||
# XXX why is it in ConsoleApplication and not BaseApplication? -romain
|
||||
pass
|
||||
|
||||
def _handle_options(self):
|
||||
if self.options.formatter:
|
||||
formatter_name = self.options.formatter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue