Commit a41e374
authored
fix(cmd/ndt7-client): avoid confusing
fix(cmd/ndt7-client): remove backticks from -locate.url usage string
The -locate.url flag's usage string contained backticks around
`-locate.token`, which caused the flag package to incorrectly display
the flag name as "-locate.url -locate.token" in help output.
Go's flag package treats backticked text in usage strings as parameter
names to display in help output (e.g., flag.String("I", "", "search
`directory` for files") displays as "-I directory"). The backticks
around -locate.token were being extracted as the parameter name.
Removed the backticks to fix the confusing help display.
See: https://pkg.go.dev/flag#hdr-Usage_messages-locate.url help string (#108)1 parent ea8f04b commit a41e374
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments