mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
flag: add .usage_example/1, .footer/1, .remaining_parameters/0 and tests
This commit is contained in:
parent
71e8237483
commit
fd644e4e28
6 changed files with 122 additions and 5 deletions
13
vlib/flag/testdata/usage_example.help.out
vendored
Normal file
13
vlib/flag/testdata/usage_example.help.out
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
xyz 0.0.2
|
||||
-----------------------------------------------
|
||||
Usage: xyz [NUMBER]...
|
||||
or: xyz OPTION
|
||||
|
||||
Description: description line 1
|
||||
description line 2
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
--version output version information and exit
|
||||
footer 1
|
||||
footer 2
|
Loading…
Add table
Add a link
Reference in a new issue