mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
flag: remove warning in the example in the readme (#19238)
This commit is contained in:
parent
c6412597ab
commit
78c34326f1
@ -24,7 +24,7 @@ fn main() {
|
|||||||
mut fp := flag.new_flag_parser(os.args)
|
mut fp := flag.new_flag_parser(os.args)
|
||||||
fp.application('flag_example_tool')
|
fp.application('flag_example_tool')
|
||||||
fp.version('v0.0.1')
|
fp.version('v0.0.1')
|
||||||
fp.limit_free_args(0, 0)? // comment this, if you expect arbitrary texts after the options
|
fp.limit_free_args(0, 0)! // comment this, if you expect arbitrary texts after the options
|
||||||
fp.description('This tool is only designed to show how the flag lib is working')
|
fp.description('This tool is only designed to show how the flag lib is working')
|
||||||
fp.skip_executable()
|
fp.skip_executable()
|
||||||
an_int := fp.int('an_int', 0, 0o123, 'some int to define 0o123 is its default value')
|
an_int := fp.int('an_int', 0, 0o123, 'some int to define 0o123 is its default value')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user