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

cli: have a posix mode to handle -- (#11133)

This commit is contained in:
div72
2021-08-11 12:26:17 +03:00
committed by GitHub
parent 18be9e52be
commit 8c2f7901aa
4 changed files with 21 additions and 33 deletions

View File

@ -85,6 +85,7 @@ fn test_if_flag_gets_set_with_long_arg() {
mut cmd := cli.Command{
name: 'command'
execute: flag_should_be_set
posix_mode: true
}
cmd.add_flag(cli.Flag{
flag: .string