diff --git a/etcdctl/README.md b/etcdctl/README.md index 770f52011..9a87dca78 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -328,10 +328,14 @@ LEASE REVOKE destroys a given lease, deleting all attached keys. ``` -### LEASE TIMETOLIVE \ +### LEASE TIMETOLIVE \ [options] LEASE TIMETOLIVE retrieves the lease information with the given lease ID. +#### Options + +- keys -- Get keys attached to this lease + #### Return value - On success, prints lease information. diff --git a/etcdctl/ctlv3/command/lease_command.go b/etcdctl/ctlv3/command/lease_command.go index 0a72d9e8b..d0649775f 100644 --- a/etcdctl/ctlv3/command/lease_command.go +++ b/etcdctl/ctlv3/command/lease_command.go @@ -103,7 +103,7 @@ var timeToLiveKeys bool // NewLeaseTimeToLiveCommand returns the cobra command for "lease timetolive". func NewLeaseTimeToLiveCommand() *cobra.Command { lc := &cobra.Command{ - Use: "timetolive ", + Use: "timetolive [options]", Short: "Get lease information", Run: leaseTimeToLiveCommandFunc,