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:
@ -9,11 +9,11 @@ const (
|
||||
spacing = 2
|
||||
)
|
||||
|
||||
fn help_flag() Flag {
|
||||
fn help_flag(with_abbrev bool) Flag {
|
||||
return Flag{
|
||||
flag: .bool,
|
||||
name: 'help',
|
||||
abbrev: 'h',
|
||||
abbrev: if with_abbrev { 'h' } else { '' },
|
||||
description: 'Prints help information',
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user