mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: update the ls subcommand help to match behavior
Currently the `etcdctl ls` subcommand help output is a bit misleading. It mentions that using the `--recursive` flag will output all keys and values for a given path: --recursive returns all values for key and child keys This is inaccurate. The `--recursive` will only output the key names under the given path. Fix the issue by updating the help string for the `--recursive` flag. --recursive returns all key names recursively for the given path Fixes #2379.
This commit is contained in:
parent
1271b01069
commit
b15806e189
@ -27,7 +27,7 @@ func NewLsCommand() cli.Command {
|
||||
Usage: "retrieve a directory",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{Name: "sort", Usage: "returns result in sorted order"},
|
||||
cli.BoolFlag{Name: "recursive", Usage: "returns all values for key and child keys"},
|
||||
cli.BoolFlag{Name: "recursive", Usage: "returns all key names recursively for the given path"},
|
||||
cli.BoolFlag{Name: "p", Usage: "append slash (/) to directories"},
|
||||
},
|
||||
Action: func(c *cli.Context) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user