keep the lower case letter for flag info

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
yanggang 2022-11-15 14:01:43 +08:00
parent 79a0b1ae7b
commit 3abcfb5c07
No known key found for this signature in database
GPG Key ID: 7F6E0CAD1556A240
5 changed files with 9 additions and 9 deletions

View File

@ -70,7 +70,7 @@ var (
cli.StringFlag{ cli.StringFlag{
Name: "hosts-dir", Name: "hosts-dir",
// compatible with "/etc/docker/certs.d" // compatible with "/etc/docker/certs.d"
Usage: "Custom hosts configuration directory", Usage: "custom hosts configuration directory",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "tlscacert", Name: "tlscacert",

View File

@ -32,11 +32,11 @@ func init() {
Usage: "disable use of pivot-root (linux only)", Usage: "disable use of pivot-root (linux only)",
}, cli.Int64Flag{ }, cli.Int64Flag{
Name: "cpu-quota", Name: "cpu-quota",
Usage: "Limit CPU CFS quota", Usage: "limit CPU CFS quota",
Value: -1, Value: -1,
}, cli.Uint64Flag{ }, cli.Uint64Flag{
Name: "cpu-period", Name: "cpu-period",
Usage: "Limit CPU CFS period", Usage: "limit CPU CFS period",
}, cli.StringFlag{ }, cli.StringFlag{
Name: "rootfs-propagation", Name: "rootfs-propagation",
Usage: "set the propagation of the container rootfs", Usage: "set the propagation of the container rootfs",

View File

@ -41,11 +41,11 @@ When you are done, use the unmount command.
Flags: append(append(commands.RegistryFlags, append(commands.SnapshotterFlags, commands.LabelFlag)...), Flags: append(append(commands.RegistryFlags, append(commands.SnapshotterFlags, commands.LabelFlag)...),
cli.BoolFlag{ cli.BoolFlag{
Name: "rw", Name: "rw",
Usage: "Enable write support on the mount", Usage: "enable write support on the mount",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "platform", Name: "platform",
Usage: "Mount the image for the specified platform", Usage: "mount the image for the specified platform",
Value: platforms.DefaultString(), Value: platforms.DefaultString(),
}, },
), ),

View File

@ -67,10 +67,10 @@ var pushCommand = cli.Command{
Value: &cli.StringSlice{}, Value: &cli.StringSlice{},
}, cli.IntFlag{ }, cli.IntFlag{
Name: "max-concurrent-uploaded-layers", Name: "max-concurrent-uploaded-layers",
Usage: "Set the max concurrent uploaded layers for each push", Usage: "set the max concurrent uploaded layers for each push",
}, cli.BoolFlag{ }, cli.BoolFlag{
Name: "allow-non-distributable-blobs", Name: "allow-non-distributable-blobs",
Usage: "Allow pushing blobs that are marked as non-distributable", Usage: "allow pushing blobs that are marked as non-distributable",
}), }),
Action: func(context *cli.Context) error { Action: func(context *cli.Context) error {
var ( var (

View File

@ -290,7 +290,7 @@ var prepareCommand = cli.Command{
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "mounts", Name: "mounts",
Usage: "Print out snapshot mounts as JSON", Usage: "print out snapshot mounts as JSON",
}, },
}, },
Action: func(context *cli.Context) error { Action: func(context *cli.Context) error {
@ -341,7 +341,7 @@ var viewCommand = cli.Command{
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "mounts", Name: "mounts",
Usage: "Print out snapshot mounts as JSON", Usage: "print out snapshot mounts as JSON",
}, },
}, },
Action: func(context *cli.Context) error { Action: func(context *cli.Context) error {