Added help command
This commit is contained in:
parent
e0db900e4e
commit
62724e3f37
2 changed files with 33 additions and 2 deletions
|
|
@ -23,6 +23,10 @@ func New(opts ...ucl.InstOption) *REPL {
|
|||
}
|
||||
r.SetCommand("help", r.helpBuiltin, Doc{
|
||||
Brief: "displays help about a command",
|
||||
Usage: "[command]",
|
||||
Args: []ArgDoc{
|
||||
{Name: "command", Brief: "command to display detailed help for"},
|
||||
},
|
||||
Detailed: `
|
||||
When used without arguments, 'help' will display the list of known commands,
|
||||
along with a brief description on what each one does.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue