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

cli: make execute_help pub (#7938)

This commit is contained in:
zakuro 2021-01-08 04:33:15 +09:00 committed by GitHub
parent cbefe6c32f
commit 226c918bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ fn (cmd Command) check_required_flags() {
} }
} }
fn (cmd Command) execute_help() { pub fn (cmd Command) execute_help() {
if cmd.commands.contains('help') { if cmd.commands.contains('help') {
help_cmd := cmd.commands.get('help') or { return } // ignore error and handle command normally help_cmd := cmd.commands.get('help') or { return } // ignore error and handle command normally
help_cmd.execute(help_cmd) help_cmd.execute(help_cmd)