forked from mirror/cobra
commit
312092086b
|
@ -62,7 +62,7 @@ and flags that are only available to that command.
|
||||||
In the example above 'port' is the flag.
|
In the example above 'port' is the flag.
|
||||||
|
|
||||||
Flag functionality is provided by the [pflag
|
Flag functionality is provided by the [pflag
|
||||||
libary](https://github.com/ogier/pflag), a fork of the flag standard library
|
library](https://github.com/ogier/pflag), a fork of the flag standard library
|
||||||
which maintains the same interface while adding posix compliance.
|
which maintains the same interface while adding posix compliance.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -118,7 +118,7 @@ and you'll get something like
|
||||||
-c --container= -p --pod=
|
-c --container= -p --pod=
|
||||||
```
|
```
|
||||||
|
|
||||||
# Specify valid filename extentions for flags that take a filename
|
# Specify valid filename extensions for flags that take a filename
|
||||||
|
|
||||||
In this example we use --filename= and expect to get a json or yaml file as the argument. To make this easier we annotate the --filename flag with valid filename extensions.
|
In this example we use --filename= and expect to get a json or yaml file as the argument. To make this easier we annotate the --filename flag with valid filename extensions.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue