Repository navigation
Commit 45b7ec7
authored
do: improve usage section (#23782)
Currently the usage for `do` is a little confusing, because it
appears that it's possible to do something without specifying a
command, but it isn't really. This is because we have a `RunE`
function that just prints the help.
This isn't really necessary, as cobra displays the help either way if
no `RunE` function is given, or when `--help` is passed. So let's
just drop the function, which improves the usage section1 parent 54b4e80 commit 45b7ec7
2 files changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| |||
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | | - | |
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
| |||
0 commit comments