mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
small formatting change to readme
This commit is contained in:
parent
033c83bc5e
commit
1cb31604a1
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ In this example we are attaching it to the root, but commands can be attached at
|
|||
|
||||
### Assign flags to a command
|
||||
|
||||
Since the flags are defined and used in different locations, we need to define a variable outside with the correct scope to assign the flag to work with.
|
||||
Since the flags are defined and used in different locations, we need to
|
||||
define a variable outside with the correct scope to assign the flag to
|
||||
work with.
|
||||
|
||||
var Verbose bool
|
||||
var Source string
|
||||
|
|
Loading…
Reference in a new issue