Skip to content

Commit

Permalink
Add missing dashes to descriptions of flags
Browse files Browse the repository at this point in the history
Config and set flags had misleading descriptions that contained examples with one dash before the flag instead of two.
  • Loading branch information
aboguszewski-sumo committed Aug 4, 2022
1 parent 0ac7163 commit c91e75d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ func flags() *flag.FlagSet {
flagSet := new(flag.FlagSet)

flagSet.Var(new(stringArrayValue), configFlag, "Locations to the config file(s), note that only a"+
" single location can be set per flag entry e.g. `-config=file:/path/to/first --config=file:path/to/second`.")
" single location can be set per flag entry e.g. `--config=file:/path/to/first --config=file:path/to/second`.")

flagSet.Var(new(stringArrayValue), setFlag,
"Set arbitrary component config property. The component has to be defined in the config file and the flag"+
" has a higher precedence. Array config properties are overridden and maps are joined, note that only a single"+
" (first) array property can be set e.g. -set=processors.attributes.actions.key=some_key. Example --set=processors.batch.timeout=2s")
" (first) array property can be set e.g. --set=processors.attributes.actions.key=some_key. Example --set=processors.batch.timeout=2s")

flagSet.Var(
gatesList,
Expand Down

0 comments on commit c91e75d

Please sign in to comment.