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

cli: fix typo (#8742)

This commit is contained in:
AAAA
2021-02-15 09:25:30 -06:00
committed by GitHub
parent 4a0367a63c
commit 4213851e22
3 changed files with 9 additions and 9 deletions

View File

@ -22,7 +22,7 @@ pub mut:
// If allow multiple value.
// If bool, multiple has no impact, bool can only set once.
// If not multiple, and multiple value set at command args, raise an error.
multipe bool
multiple bool
mut:
// Set true if flag found.
found bool
@ -206,7 +206,7 @@ fn (mut flag Flag) parse(args []string, with_abbrev bool) ?[]string {
new_args := flag.parse_bool(args) ?
return new_args
} else {
if flag.value.len > 0 && !flag.multipe {
if flag.value.len > 0 && !flag.multiple {
return error('The argument `$flag.name` accept only one value!')
}