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

cli: help/version abbrev optional + fix various inconsistencies (#5586)

This commit is contained in:
Tim Basel
2020-07-01 10:54:34 +02:00
committed by GitHub
parent ca1f47a742
commit 7386adfc99
4 changed files with 19 additions and 24 deletions

View File

@ -1,10 +1,10 @@
module cli
fn version_flag() Flag {
fn version_flag(with_abbrev bool) Flag {
return Flag{
flag: .bool,
name: 'version',
abbrev: 'v',
abbrev: if with_abbrev { 'v' } else { '' },
description: 'Prints version information',
}
}