mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
flag: fix displaying of both abbreviated and long options
Add tests for the usage screen
This commit is contained in:
committed by
Alexander Medvednikov
parent
d07953b0f0
commit
d2f2ac523f
@@ -245,6 +245,9 @@ fn test_allow_abreviations() {
|
||||
|
||||
u := fp.usage()
|
||||
assert u.contains(' -v') && u.contains(' -o') && u.contains(' -i') && u.contains(' -f')
|
||||
assert u.contains(' -o, --output <string>')
|
||||
assert u.contains(' -i, --count <int>')
|
||||
assert u.contains(' -f, --value <float>')
|
||||
}
|
||||
|
||||
fn test_allow_kebab_options() {
|
||||
|
||||
Reference in New Issue
Block a user