1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cli: add missing doc strings (#14158)

This commit is contained in:
Larpon 2022-04-25 13:41:46 +02:00 committed by GitHub
parent 88f22b4367
commit 283d181047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()'