mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cli: allow flag to be set multi time (#8256)
This commit is contained in:
@@ -267,7 +267,7 @@ fn (cmd Command) check_version_flag() {
|
||||
|
||||
fn (cmd Command) check_required_flags() {
|
||||
for flag in cmd.flags {
|
||||
if flag.required && flag.value == '' {
|
||||
if flag.required && flag.value.len > 0 {
|
||||
full_name := cmd.full_name()
|
||||
println('Flag `$flag.name` is required by `$full_name`')
|
||||
exit(1)
|
||||
|
Reference in New Issue
Block a user