cmd/v: fix `-version` and `-v` collision
parent
91378583cc
commit
e37fed437d
|
@ -77,8 +77,7 @@ fn parse_flags(flag string, f mut flag.Instance, prefs mut flag.MainCmdPreferenc
|
||||||
f.is_equivalent_to(['h', 'help'])
|
f.is_equivalent_to(['h', 'help'])
|
||||||
prefs.action = .help
|
prefs.action = .help
|
||||||
}
|
}
|
||||||
'v', 'version' {
|
'version' {
|
||||||
f.is_equivalent_to(['v', 'version'])
|
|
||||||
prefs.action = .version
|
prefs.action = .version
|
||||||
}
|
}
|
||||||
'-version', '-help' {
|
'-version', '-help' {
|
||||||
|
|
Loading…
Reference in New Issue