mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: adding skeleton README.md files for all vlib modules (#13034)
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
The `flag` module helps command-line flag parsing.
|
||||
Main features are:
|
||||
## Description:
|
||||
|
||||
The `flag` module is a command line option parser.
|
||||
Its main features are:
|
||||
- simplicity of usage.
|
||||
- parses flags like `-f` or '--flag' or '--stuff=things' or '--things stuff'.
|
||||
- handles bool, int, float and string args.
|
||||
- can print usage information listing all the declrared flags.
|
||||
- can print usage information listing all the declared flags.
|
||||
- handles unknown arguments as error.
|
||||
|
||||
See also the `cli` module, for a more complex command line option parser,
|
||||
that supports declaring multiple subcommands each having a separate set of
|
||||
options.
|
||||
|
||||
Usage example:
|
||||
|
||||
```v
|
||||
|
||||
Reference in New Issue
Block a user