Added help command

This commit is contained in:
Leon Mika 2024-12-11 21:23:53 +11:00
parent e0db900e4e
commit 62724e3f37
2 changed files with 33 additions and 2 deletions

View file

@ -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.