From c4125cec50d4631baccdfbd02835168f7484805e Mon Sep 17 00:00:00 2001 From: Qinqi Qu Date: Fri, 10 Feb 2023 15:10:33 +0800 Subject: [PATCH] nydusify: Fix nydusify help messages 1. The "--merge-platform" flag in nydusify convert no longer need to push OCIv1 image first. 2. Fix wrong indentation in Version prompt. Signed-off-by: Qinqi Qu --- contrib/nydusify/cmd/nydusify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/nydusify/cmd/nydusify.go b/contrib/nydusify/cmd/nydusify.go index 67956a106c5..cce5279c4fb 100644 --- a/contrib/nydusify/cmd/nydusify.go +++ b/contrib/nydusify/cmd/nydusify.go @@ -176,7 +176,7 @@ func main() { FullTimestamp: true, }) - version := fmt.Sprintf("\nVersion : %s\nRevision : %s\nGo version : %s\nBuild time : %s", gitVersion, revision, runtime.Version(), buildTime) + version := fmt.Sprintf("\nVersion : %s\nRevision : %s\nGo version : %s\nBuild time : %s", gitVersion, revision, runtime.Version(), buildTime) app := &cli.App{ Name: "Nydusify", @@ -315,7 +315,7 @@ func main() { &cli.BoolFlag{ Name: "merge-platform", Value: false, - Usage: "Generate an OCI image index with both OCI and Nydus manifests for the image, please ensure that the OCI image exists in the target repository", + Usage: "Generate an OCI image index with both OCI and Nydus manifests for the image", EnvVars: []string{"MERGE_PLATFORM"}, Aliases: []string{"multi-platform"}, },