mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctlv3: updated options for TIMETOLIVE
This commit is contained in:
parent
b586060812
commit
3e67702d4b
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user