mirror of
https://github.com/spf13/cobra.git
synced 2024-11-15 09:48:19 -07:00
small formatting change to readme
This commit is contained in:
parent
033c83bc5e
commit
1cb31604a1
@ -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 New Issue
Block a user