From 9e6f80aa9097a84b3a55750bb83a2afebedc30f0 Mon Sep 17 00:00:00 2001 From: Mario Hros Date: Wed, 8 Mar 2017 20:52:02 +0100 Subject: [PATCH] readme update --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8b6f3d8..46b97ec 100644 --- a/README.md +++ b/README.md @@ -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 ```