Browse Source

Make docs for params clearer

pull/9098/head
Joel Watson 4 years ago
parent
commit
5ad0db73c8
  1. 6
      command/snapshot/inspect/snapshot_inspect.go
  2. 6
      website/pages/commands/snapshot/inspect.mdx

6
command/snapshot/inspect/snapshot_inspect.go

@ -39,11 +39,11 @@ type cmd struct {
func (c *cmd) init() {
c.flags = flag.NewFlagSet("", flag.ContinueOnError)
c.flags.BoolVar(&c.detailed, "detailed", false,
"Provides detailed information about KV store data.")
"Provides a detailed KV space usage breakdown for any KV data that's been stored.")
c.flags.IntVar(&c.depth, "depth", 2,
"The key prefix depth used to breakdown KV store data. Defaults to 2.")
"Must be used with -detailed. The key prefix depth used to breakdown KV store data. Defaults to 2.")
c.flags.StringVar(&c.filter, "filter", "",
"Filter KV keys using this prefix filter.")
"Must be used with -detailed. Limits KV key breakdown using this prefix filter.")
c.flags.StringVar(
&c.format,
"format",

6
website/pages/commands/snapshot/inspect.mdx

@ -109,7 +109,7 @@ more details about snapshot internals.
#### Command Options
- `-detailed` - Optional, provides a key space usage breakdown for any KV data stored in Consul.
- `-depth` - Optional, used with `-detailed` to adjust the grouping level of keys. Defaults to 2.
- `-filter` - Optional, used with `-detailed` to specify a key prefix that excludes keys that don't match.
- `-detailed` - Optional, provides a space usage breakdown for any KV data stored in Consul.
- `-depth` - Must be used with `-detailed`. Used to adjust the grouping level of keys. Defaults to 2.
- `-filter` - Must be used with `-detailed`. Used to specify a key prefix that excludes keys that don't match.
- `-format` - Optional, allows from changing the output to JSON. Parameters accepted are "pretty" and "JSON".

Loading…
Cancel
Save