From 3e67702d4b7bda8927da539b3cd5bd864fa3b75e Mon Sep 17 00:00:00 2001 From: sharat Date: Tue, 20 Sep 2016 16:40:58 +0530 Subject: [PATCH] etcdctlv3: updated options for TIMETOLIVE --- etcdctl/README.md | 6 +++++- etcdctl/ctlv3/command/lease_command.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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,