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

v.pkgconfig: fix duplication in short flags to the standalone pkgconfig binary (#14740)

This commit is contained in:
Dialga 2022-06-11 20:06:55 +12:00 committed by GitHub
parent 26d051475a
commit da7a166708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,9 +182,9 @@ fn parse_options(mut fp flag.FlagParser) &MainOptions {
modversion: fp.bool('modversion', `V`, false, 'show version of module') modversion: fp.bool('modversion', `V`, false, 'show version of module')
help: fp.bool('help', `h`, false, 'show this help message') help: fp.bool('help', `h`, false, 'show this help message')
debug: fp.bool('debug', `D`, false, 'show debug information') debug: fp.bool('debug', `D`, false, 'show debug information')
listall: fp.bool('list-all', `l`, false, 'list all pkgmodules') listall: fp.bool('list-all', `p`, false, 'list all pkgmodules')
exists: fp.bool('exists', `e`, false, 'return 0 if pkg exists') exists: fp.bool('exists', `e`, false, 'return 0 if pkg exists')
variables: fp.bool('print-variables', `V`, false, 'display variable names') variables: fp.bool('print-variables', `P`, false, 'display variable names')
requires: fp.bool('print-requires', `r`, false, 'display requires of the module') requires: fp.bool('print-requires', `r`, false, 'display requires of the module')
atleast: fp.string('atleast-version', `a`, '', 'return 0 if pkg version is at least the given one') atleast: fp.string('atleast-version', `a`, '', 'return 0 if pkg version is at least the given one')
atleastpc: fp.string('atleast-pkgconfig-version', `A`, '', 'return 0 if pkgconfig version is at least the given one') atleastpc: fp.string('atleast-pkgconfig-version', `A`, '', 'return 0 if pkgconfig version is at least the given one')