From 283d1810478dfc89ba1fd1763e9fce3d4d77d6db Mon Sep 17 00:00:00 2001 From: Larpon Date: Mon, 25 Apr 2022 13:41:46 +0200 Subject: [PATCH] cli: add missing doc strings (#14158) --- vlib/cli/help.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/cli/help.v b/vlib/cli/help.v index f75662ea59..20c176d7c2 100644 --- a/vlib/cli/help.v +++ b/vlib/cli/help.v @@ -28,6 +28,7 @@ fn help_cmd() Command { } } +// print_help_for_command outputs the help message of `help_cmd`. pub fn print_help_for_command(help_cmd Command) ? { if help_cmd.args.len > 0 { mut cmd := help_cmd.parent @@ -54,6 +55,7 @@ pub fn print_help_for_command(help_cmd Command) ? { } } +// help_message returns a generated help message as a `string` for the `Command`. pub fn (cmd Command) help_message() string { mut help := '' help += 'Usage: $cmd.full_name()'