Browse Source

etcdctlv3: updated options for TIMETOLIVE

sharat 9 years ago
parent
commit
3e67702d4b
2 changed files with 6 additions and 2 deletions
  1. 5 1
      etcdctl/README.md
  2. 1 1
      etcdctl/ctlv3/command/lease_command.go

+ 5 - 1
etcdctl/README.md

@@ -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.
 LEASE TIMETOLIVE retrieves the lease information with the given lease ID.
 
 
+#### Options
+
+- keys -- Get keys attached to this lease
+
 #### Return value
 #### Return value
 
 
 - On success, prints lease information.
 - On success, prints lease information.

+ 1 - 1
etcdctl/ctlv3/command/lease_command.go

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