s/weboobcfg/weboob-config
This commit is contained in:
parent
f95aab9096
commit
d0ccc88201
2 changed files with 4 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ __all__ = ['WeboobCfg']
|
|||
|
||||
|
||||
class WeboobCfg(ConsoleApplication):
|
||||
APPNAME = 'weboobcfg'
|
||||
APPNAME = 'weboob-config'
|
||||
VERSION = '0.1'
|
||||
COPYRIGHT = 'Copyright(C) 2010 Christophe Benz, Romain Bignon'
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ class WeboobCfg(ConsoleApplication):
|
|||
try:
|
||||
self.weboob.backends_config.add_backend(name, name, params)
|
||||
print u'Backend "%s" successfully added to file "%s".\n'\
|
||||
'Please check configuration parameters values with "weboobcfg edit".' % (
|
||||
'Please check configuration parameters values with "weboob-config edit".' % (
|
||||
name, self.weboob.backends_config.confpath)
|
||||
except ConfigParser.DuplicateSectionError:
|
||||
print u'Backend "%s" is already configured in file "%s"' % (name, self.weboob.backends_config.confpath)
|
||||
|
|
@ -94,7 +94,7 @@ class WeboobCfg(ConsoleApplication):
|
|||
try:
|
||||
self.weboob.backends_config.add_backend(new_name, name, params)
|
||||
print u'Backend "%s" successfully added to file "%s".\n'\
|
||||
'Please check configuration parameters values with "weboobcfg edit".' % (
|
||||
'Please check configuration parameters values with "weboob-config edit".' % (
|
||||
name, self.weboob.backends_config.confpath)
|
||||
break
|
||||
except ConfigParser.DuplicateSectionError:
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ class ConsoleApplication(BaseApplication):
|
|||
caps = (caps,)
|
||||
caps = iter(cap.__name__ for cap in caps)
|
||||
weboobcfg.command_backends(*caps)
|
||||
logging.error(u'You can configure a backends using the "weboobcfg add" command:\nweboobcfg add <name> [options..]')
|
||||
logging.error(u'You can configure a backends using the "weboob-config add" command:\nweboob-config add <name> [options..]')
|
||||
sys.exit(0)
|
||||
|
||||
def parse_id(self, _id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue