mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
slightly more helpful message
This commit is contained in:
parent
a470cdc067
commit
9df79e4162
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ def register_completer(args, stdin=None):
|
|||
if '--help' in args or '-h' in args:
|
||||
return _register_help_str
|
||||
if len(args) not in {2, 3}:
|
||||
err = "register-completer takes either 2 or 3 arguments."
|
||||
err = ("register-completer takes either 2 or 3 arguments.\n"
|
||||
"For help, run: register-completer --help")
|
||||
else:
|
||||
name = args[0]
|
||||
func = args[1]
|
||||
|
|
Loading…
Add table
Reference in a new issue