catch error if no backend name is given, indicate hint

This commit is contained in:
Christophe Benz 2010-11-17 14:18:10 +01:00
commit c900413e64

View file

@ -46,6 +46,9 @@ class WeboobCfg(ReplApplication):
Add a configured backend. Add a configured backend.
""" """
if not line:
print >>sys.stderr, 'You must specify a backend name. Hint: use the "backends" command.'
return
name, options = self.parseargs(line, 2, 1) name, options = self.parseargs(line, 2, 1)
if options: if options:
options = options.split(' ') options = options.split(' ')