Skip to content

Commit 657a7ce

Browse files
committed
fix input flag name case
1 parent 9f9de74 commit 657a7ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ This is the number of seconds you want Gonsul to wait between checks on the repo
325325
This is the file extensions that Gonsul should consider as inputs to populate our Consul. Please set each extension
326326
without the dot, and separate each extension with a comma.
327327

328-
### `--keep-FileExt`
328+
### `--keep-ext`
329329
> `require:` **no**
330330
> `default:` **false**
331-
> `example:` **`--keep-FileExt=true`**
331+
> `example:` **`--keep-ext=true`**
332332
333333
Gonsul default behavior is to remove/trim the filextension from the filename when pushing files to consul k/v path, if this option is set to true gonsul will keep the file extension.
334334

internal/config/flags_parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func parseFlags() ConfigFlags {
4949
flags.AllowDeletes = flag.String("allow-deletes", "false", "false, nothing will be done and a report on conflicting deletes will be shown; true: deletes reported conflitcs and proceeds; skip: reportes conflitcs, does not performe any deletes and proceeds syncing remaining files.) (Default false)")
5050
flags.PollInterval = flag.Int("poll-interval", 60, "The number of seconds for the repository polling interval")
5151
flags.ValidExtensions = flag.String("input-ext", "json,txt,ini", "A comma separated list of file extensions valid as input")
52-
flags.KeepFileExt = flag.Bool("keep-FileExt", false, "Do we want to keep file name extensions ? (If not set to true defaults by ommiting the file name extension.) (Default false)")
52+
flags.KeepFileExt = flag.Bool("keep-ext", false, "Do we want to keep file name extensions ? (If not set to true defaults by ommiting the file name extension.) (Default false)")
5353
flags.Timeout = flag.Int("timeout", 5, "The number of seconds for the client to wait for a response from Consul")
5454
flags.Version = flag.Bool("v", false, "Will show the Gonsul version")
5555

0 commit comments

Comments
 (0)