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

cli: improvements to help and error messages (#6375)

This commit is contained in:
Lukas Neubert
2020-09-16 22:01:44 +02:00
committed by GitHub
parent 608df40058
commit 2464deec82
5 changed files with 27 additions and 27 deletions

View File

@ -52,7 +52,7 @@ fn test_if_command_has_default_version_subcommand_if_version_is_set() {
}
fn flag_should_be_set(cmd cli.Command) ? {
flag := cmd.flags.get_string('flag')?
flag := cmd.flags.get_string('flag') ?
assert flag == 'value'
}
@ -83,9 +83,9 @@ fn test_if_flag_gets_set_with_abbrev() {
}
fn flag_should_have_value_of_42(cmd cli.Command) ? {
flag := cmd.flags.get_string('flag')?
flag := cmd.flags.get_string('flag') ?
assert flag == 'value'
value := cmd.flags.get_int('value')?
value := cmd.flags.get_int('value') ?
assert value == 42
}