From c6dcd0c53219696401d70748fc38ea0e386ff7a8 Mon Sep 17 00:00:00 2001 From: Michael Habinsky Date: Fri, 1 Nov 2024 11:35:58 -0600 Subject: [PATCH] Correct usage strings --- cmd/generator.go | 2 +- cmd/mount.go | 2 +- cmd/mount_all.go | 2 +- cmd/version.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/generator.go b/cmd/generator.go index 74d76eeef..06a6f3d79 100644 --- a/cmd/generator.go +++ b/cmd/generator.go @@ -34,7 +34,7 @@ import ( ) var generateCmd = &cobra.Command{ - Use: "generate [component name]", + Use: "generate ", Hidden: true, Short: "Generate a new component for Cloudfuse", Long: "Generate a new component for Cloudfuse", diff --git a/cmd/mount.go b/cmd/mount.go index 22ea0517e..5dfe9619f 100644 --- a/cmd/mount.go +++ b/cmd/mount.go @@ -263,7 +263,7 @@ func parseConfig() error { // We use the cobra library to provide a CLI for Cloudfuse. // Look at https://cobra.dev/ for more information var mountCmd = &cobra.Command{ - Use: "mount [path]", + Use: "mount ", Short: "Mounts the container as a filesystem", Long: "Mounts the container as a filesystem", SuggestFor: []string{"mnt", "mout"}, diff --git a/cmd/mount_all.go b/cmd/mount_all.go index 81dcf56c2..dcbd4ae0d 100644 --- a/cmd/mount_all.go +++ b/cmd/mount_all.go @@ -56,7 +56,7 @@ type containerListingOptions struct { var mountAllOpts containerListingOptions var mountAllCmd = &cobra.Command{ - Use: "all [path] ", + Use: "all ", Short: "Mounts all containers for a given cloud account as a filesystem", Long: "Mounts all containers for a given cloud account as a filesystem", SuggestFor: []string{"mnta", "mout"}, diff --git a/cmd/version.go b/cmd/version.go index 01bec5105..80dc502f9 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -36,7 +36,7 @@ import ( var check bool var versionCmd = &cobra.Command{ - Use: "version [--check]", + Use: "version", Short: "Command to print the current version along with optional check for latest version", FlagErrorHandling: cobra.ExitOnError, RunE: func(cmd *cobra.Command, args []string) error {