keep the uppercase letter for flag info
Signed-off-by: yulng <wei.yang@daocloud.io>
This commit is contained in:
@@ -32,7 +32,7 @@ import (
|
||||
// Command is the cli command for managing content
|
||||
var Command = cli.Command{
|
||||
Name: "leases",
|
||||
Usage: "manage leases",
|
||||
Usage: "Manage leases",
|
||||
Subcommands: cli.Commands{
|
||||
listCommand,
|
||||
createCommand,
|
||||
@@ -50,7 +50,7 @@ var listCommand = cli.Command{
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "quiet, q",
|
||||
Usage: "print only the blob digest",
|
||||
Usage: "Print only the blob digest",
|
||||
},
|
||||
},
|
||||
Action: func(context *cli.Context) error {
|
||||
@@ -107,11 +107,11 @@ var createCommand = cli.Command{
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "id",
|
||||
Usage: "set the id for the lease, will be generated by default",
|
||||
Usage: "Set the id for the lease, will be generated by default",
|
||||
},
|
||||
cli.DurationFlag{
|
||||
Name: "expires, x",
|
||||
Usage: "expiration of lease (0 value will not expire)",
|
||||
Usage: "Expiration of lease (0 value will not expire)",
|
||||
Value: 24 * time.Hour,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user