Merge pull request #6481 from sinsharat/update_timetolive_options

etcdctlv3: updated options for TIMETOLIVE
This commit is contained in:
Xiang Li 2016-09-20 23:29:15 +08:00 committed by GitHub
commit 3da8c6512b
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,