1
0
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:
jeffmikels
2022-01-05 11:06:08 -05:00
committed by GitHub
parent 59357e873d
commit a60b381d5e
49 changed files with 416 additions and 125 deletions

View File

@@ -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