SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden particularly useful when testing.
(a []string)
| 279 | // SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden |
| 280 | // particularly useful when testing. |
| 281 | func (c *Command) SetArgs(a []string) { |
| 282 | c.args = a |
| 283 | } |
| 284 | |
| 285 | // SetOutput sets the destination for usage and error messages. |
| 286 | // If output is nil, os.Stderr is used. |
no outgoing calls