keep the uppercase letter for flag info

Signed-off-by: yulng <wei.yang@daocloud.io>
This commit is contained in:
yulng
2023-01-19 17:40:45 +08:00
parent 94934e1a47
commit 757b8f702b
43 changed files with 217 additions and 217 deletions

View File

@@ -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,
},
},