catch error if no backend name is given, indicate hint
This commit is contained in:
parent
692caf9453
commit
c900413e64
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ class WeboobCfg(ReplApplication):
|
|||
|
||||
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)
|
||||
if options:
|
||||
options = options.split(' ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue