diff --git a/docs/v1/examples/arguments.md b/docs/v1/examples/arguments.md index ba451b6..4416d32 100644 --- a/docs/v1/examples/arguments.md +++ b/docs/v1/examples/arguments.md @@ -1,4 +1,7 @@ -### Arguments +--- +tags: + - v1 +--- You can lookup arguments by calling the `Args` function on `cli.Context`, e.g.: diff --git a/docs/v1/examples/bash-completions.md b/docs/v1/examples/bash-completions.md index 5648477..73af176 100644 --- a/docs/v1/examples/bash-completions.md +++ b/docs/v1/examples/bash-completions.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + You can enable completion commands by setting the `EnableBashCompletion` flag on the `App` object. By default, this setting will only auto-complete to show an app's subcommands, but you can write your own completion methods for diff --git a/docs/v1/examples/combining-short-options.md b/docs/v1/examples/combining-short-options.md index 3ab6ebd..0496300 100644 --- a/docs/v1/examples/combining-short-options.md +++ b/docs/v1/examples/combining-short-options.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + Traditional use of options using their shortnames look like this: ``` diff --git a/docs/v1/examples/exit-codes.md b/docs/v1/examples/exit-codes.md index 39c0642..1d6627d 100644 --- a/docs/v1/examples/exit-codes.md +++ b/docs/v1/examples/exit-codes.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + Calling `App.Run` will not automatically call `os.Exit`, which means that by default the exit code will "fall through" to being `0`. An explicit exit code may be set by returning a non-nil error that fulfills `cli.ExitCoder`, *or* a diff --git a/docs/v1/examples/flags.md b/docs/v1/examples/flags.md index f6ae7be..2f9300b 100644 --- a/docs/v1/examples/flags.md +++ b/docs/v1/examples/flags.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + Setting and querying flags is simple.