From 103f8cb45685f25279374e5197854baae71fad82 Mon Sep 17 00:00:00 2001 From: Seednode Date: Fri, 16 Sep 2022 14:57:40 -0500 Subject: [PATCH] Modified usage info --- README.md | 3 +-- cmd/root.go | 2 +- cmd/version.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 16cef88..55abf36 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Builds available [here](https://cdn.seedno.de/builds/roulette). ## Usage output ``` Usage: - roulette [path2] ... [pathN] [flags] + roulette [path2]... [flags] roulette [command] Available Commands: @@ -28,7 +28,6 @@ Flags: -p, --port int port to listen on (default 8080) -r, --recursive recurse into subdirectories -v, --verbose log accessed files to stdout - --version version for roulette Use "roulette [command] --help" for more information about a command. ``` \ No newline at end of file diff --git a/cmd/root.go b/cmd/root.go index 1b61ee1..58181cd 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -15,7 +15,7 @@ var Recursive bool var Verbose bool var rootCmd = &cobra.Command{ - Use: "roulette [path2] ... [pathN]", + Use: "roulette [path2]...", Short: "Serves random images from the specified directories.", Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/version.go b/cmd/version.go index f40cd90..3739c23 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.6.2" +var Version = "0.6.3" func init() { rootCmd.AddCommand(versionCmd)