etcdctlv3: updated options for TIMETOLIVE

release-3.1
sharat 2016-09-20 16:40:58 +05:30
parent b586060812
commit 3e67702d4b
2 changed files with 6 additions and 2 deletions

View File

@ -328,10 +328,14 @@ LEASE REVOKE destroys a given lease, deleting all attached keys.
```
### LEASE TIMETOLIVE \<leaseID\>
### LEASE TIMETOLIVE \<leaseID\> [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.

View File

@ -103,7 +103,7 @@ var timeToLiveKeys bool
// NewLeaseTimeToLiveCommand returns the cobra command for "lease timetolive".
func NewLeaseTimeToLiveCommand() *cobra.Command {
lc := &cobra.Command{
Use: "timetolive <leaseID>",
Use: "timetolive <leaseID> [options]",
Short: "Get lease information",
Run: leaseTimeToLiveCommandFunc,