diff options
| author | Mario Hros <[email protected]> | 2017-03-08 20:52:02 +0100 |
|---|---|---|
| committer | Mario Hros <[email protected]> | 2017-03-08 20:52:02 +0100 |
| commit | 9e6f80aa9097a84b3a55750bb83a2afebedc30f0 (patch) | |
| tree | fe942e892888666d6be57d9e45ace73539c98ef7 /README.md | |
| parent | 9173d259efa4541969667cda57d52663c48c66db (diff) | |
readme update
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -37,7 +37,7 @@ arg.MustParse(&args) ```shell $ ./example -usage: example --id ID [--timeout TIMEOUT] +Usage: example --id ID [--timeout TIMEOUT] error: --id is required ``` @@ -108,13 +108,13 @@ arg.MustParse(&args) ```shell $ ./example -h -usage: [--verbose] [--dataset DATASET] [--optimize OPTIMIZE] [--help] INPUT [OUTPUT [OUTPUT ...]] +Usage: [--verbose] [--dataset DATASET] [--optimize OPTIMIZE] [--help] INPUT [OUTPUT [OUTPUT ...]] -positional arguments: - input - output +Positional arguments: + INPUT + OUTPUT -options: +Options: --verbose, -v verbosity level --dataset DATASET dataset to use --optimize OPTIMIZE, -O OPTIMIZE @@ -162,7 +162,7 @@ if args.Foo == "" && args.Bar == "" { ```shell ./example -usage: samples [--foo FOO] [--bar BAR] +Usage: samples [--foo FOO] [--bar BAR] error: you must provide one of --foo and --bar ``` @@ -259,7 +259,7 @@ $ ./example --name=foo.bar &main.NameDotName{Head:"foo", Tail:"bar"} $ ./example --name=oops -usage: example [--name NAME] +Usage: example [--name NAME] error: error processing --name: missing period in "oops" ``` @@ -283,9 +283,9 @@ func main() { ```shell $ ./example -h this program does this and that -usage: example [--foo FOO] +Usage: example [--foo FOO] -options: +Options: --foo FOO --help, -h display this help and exit ``` |
