SetFlag sets a flag in the local flag set of the top-level command
(name, value string)
| 117 | |
| 118 | // SetFlag sets a flag in the local flag set of the top-level command |
| 119 | func (tcmd *TopLevelCommand) SetFlag(name, value string) { |
| 120 | tcmd.cmd.Flags().Set(name, value) |
| 121 | } |
| 122 | |
| 123 | // HandleGlobalFlags takes care of parsing global flags defined on the |
| 124 | // command, it returns the underlying cobra command and the args it |