Commit 64b170c
committed
runtime: Document args[0] and the no-usable-args fallback
Leaning on Go's docs [1]:
> Args holds command line arguments, including the command as
> Args[0]. If the Args field is empty or nil, Run uses {Path}.
for the fallback wording.
This restores the ability to explicitly set args[0] independent of the
path, which was requested in #34 [2] and ack-ed by Micheal [3] and
Mrunal [4], but didn't match the examples that landed with #34.
[1]: http://golang.org/pkg/os/exec/#Cmd
[2]: #34 (comment)
[3]: #34 (comment)
[4]: #34 (comment)
Signed-off-by: W. Trevor King <[email protected]>1 parent 94c1803 commit 64b170c
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
0 commit comments