From b15806e189d6e3f7bd88228638fd06902e9d08b4 Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Tue, 3 Mar 2015 06:16:53 -0800 Subject: [PATCH] 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. --- etcdctl/command/ls_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdctl/command/ls_command.go b/etcdctl/command/ls_command.go index ca2f11b92..d1a8b4885 100644 --- a/etcdctl/command/ls_command.go +++ b/etcdctl/command/ls_command.go @@ -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) {