From 3abcfb5c07ab1a29f000d07e77de2c5f9746eec7 Mon Sep 17 00:00:00 2001 From: yanggang Date: Tue, 15 Nov 2022 14:01:43 +0800 Subject: [PATCH] keep the lower case letter for flag info Signed-off-by: yanggang --- cmd/ctr/commands/commands.go | 2 +- cmd/ctr/commands/commands_unix.go | 4 ++-- cmd/ctr/commands/images/mount.go | 4 ++-- cmd/ctr/commands/images/push.go | 4 ++-- cmd/ctr/commands/snapshots/snapshots.go | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/ctr/commands/commands.go b/cmd/ctr/commands/commands.go index c0ac131a7..ce2197380 100644 --- a/cmd/ctr/commands/commands.go +++ b/cmd/ctr/commands/commands.go @@ -70,7 +70,7 @@ var ( cli.StringFlag{ Name: "hosts-dir", // compatible with "/etc/docker/certs.d" - Usage: "Custom hosts configuration directory", + Usage: "custom hosts configuration directory", }, cli.StringFlag{ Name: "tlscacert", diff --git a/cmd/ctr/commands/commands_unix.go b/cmd/ctr/commands/commands_unix.go index 6ba5332a8..311131aa8 100644 --- a/cmd/ctr/commands/commands_unix.go +++ b/cmd/ctr/commands/commands_unix.go @@ -32,11 +32,11 @@ func init() { Usage: "disable use of pivot-root (linux only)", }, cli.Int64Flag{ Name: "cpu-quota", - Usage: "Limit CPU CFS quota", + Usage: "limit CPU CFS quota", Value: -1, }, cli.Uint64Flag{ Name: "cpu-period", - Usage: "Limit CPU CFS period", + Usage: "limit CPU CFS period", }, cli.StringFlag{ Name: "rootfs-propagation", Usage: "set the propagation of the container rootfs", diff --git a/cmd/ctr/commands/images/mount.go b/cmd/ctr/commands/images/mount.go index 12e1733fc..c2811f272 100644 --- a/cmd/ctr/commands/images/mount.go +++ b/cmd/ctr/commands/images/mount.go @@ -41,11 +41,11 @@ When you are done, use the unmount command. Flags: append(append(commands.RegistryFlags, append(commands.SnapshotterFlags, commands.LabelFlag)...), cli.BoolFlag{ Name: "rw", - Usage: "Enable write support on the mount", + Usage: "enable write support on the mount", }, cli.StringFlag{ Name: "platform", - Usage: "Mount the image for the specified platform", + Usage: "mount the image for the specified platform", Value: platforms.DefaultString(), }, ), diff --git a/cmd/ctr/commands/images/push.go b/cmd/ctr/commands/images/push.go index 712387804..1a3dc1375 100644 --- a/cmd/ctr/commands/images/push.go +++ b/cmd/ctr/commands/images/push.go @@ -67,10 +67,10 @@ var pushCommand = cli.Command{ Value: &cli.StringSlice{}, }, cli.IntFlag{ 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{ 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 { var ( diff --git a/cmd/ctr/commands/snapshots/snapshots.go b/cmd/ctr/commands/snapshots/snapshots.go index f0b2435d8..057e063fa 100644 --- a/cmd/ctr/commands/snapshots/snapshots.go +++ b/cmd/ctr/commands/snapshots/snapshots.go @@ -290,7 +290,7 @@ var prepareCommand = cli.Command{ }, cli.BoolFlag{ Name: "mounts", - Usage: "Print out snapshot mounts as JSON", + Usage: "print out snapshot mounts as JSON", }, }, Action: func(context *cli.Context) error { @@ -341,7 +341,7 @@ var viewCommand = cli.Command{ }, cli.BoolFlag{ Name: "mounts", - Usage: "Print out snapshot mounts as JSON", + Usage: "print out snapshot mounts as JSON", }, }, Action: func(context *cli.Context) error {