Cmd commands must have one argument
This commit is contained in:
parent
d384a10810
commit
57f1bd3cdf
1 changed files with 5 additions and 2 deletions
|
|
@ -86,13 +86,16 @@ class WeboobCfg(ReplApplication):
|
|||
return 1
|
||||
return 0
|
||||
|
||||
def do_edit(self):
|
||||
def do_edit(self, line):
|
||||
"""
|
||||
edit
|
||||
|
||||
Edit configuration file.
|
||||
"""
|
||||
subprocess.call([os.environ.get('EDITOR', 'vi'), self.weboob.backends_config.confpath])
|
||||
if line:
|
||||
print 'This command takes no argument.'
|
||||
else:
|
||||
subprocess.call([os.environ.get('EDITOR', 'vi'), self.weboob.backends_config.confpath])
|
||||
|
||||
def do_backends(self, line):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue