SetArgs sets the args (default os.Args[:1] used to invoke the command
(args []string)
| 111 | |
| 112 | // SetArgs sets the args (default os.Args[:1] used to invoke the command |
| 113 | func (tcmd *TopLevelCommand) SetArgs(args []string) { |
| 114 | tcmd.args = args |
| 115 | tcmd.cmd.SetArgs(args) |
| 116 | } |
| 117 | |
| 118 | // SetFlag sets a flag in the local flag set of the top-level command |
| 119 | func (tcmd *TopLevelCommand) SetFlag(name, value string) { |
no outgoing calls