From 57f1bd3cdf402a575c31fae52796a1ff5ffa6c72 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Mon, 27 Sep 2010 14:01:51 +0200 Subject: [PATCH] Cmd commands must have one argument --- weboob/applications/weboobcfg/weboobcfg.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/weboob/applications/weboobcfg/weboobcfg.py b/weboob/applications/weboobcfg/weboobcfg.py index c2592c04..e0b7f080 100644 --- a/weboob/applications/weboobcfg/weboobcfg.py +++ b/weboob/applications/weboobcfg/weboobcfg.py @@ -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): """