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

@ -29,7 +29,7 @@ func NewUpdateDirCommand() cli.Command {
Usage: "update an existing directory",
ArgsUsage: "<key> <value>",
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 {
updatedirCommandFunc(c, mustNewKeyAPI(c))