etcdctl: add ttl unit to flag description

Add the ttl unit (seconds) to --ttl description for etcdctl's mk, mkdir, set,
setdir, update, and updatedir commands.
This commit is contained in:
joshrosso
2016-10-25 17:12:15 -07:00
parent d7bc15300b
commit e489229153
6 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ func NewSetDirCommand() cli.Command {
Usage: "create a new directory or update an existing directory TTL",
ArgsUsage: "<key>",
Flags: []cli.Flag{
cli.IntFlag{Name: "ttl", Value: 0, Usage: "key time-to-live"},
cli.IntFlag{Name: "ttl", Value: 0, Usage: "key time-to-live in seconds"},
},
Action: func(c *cli.Context) error {
mkdirCommandFunc(c, mustNewKeyAPI(c), client.PrevIgnore)