Modified usage info

This commit is contained in:
Seednode 2022-09-16 14:57:40 -05:00
parent 31f138d9ec
commit 103f8cb456
3 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,7 @@ Builds available [here](https://cdn.seedno.de/builds/roulette).
## Usage output ## Usage output
``` ```
Usage: Usage:
roulette <path1> [path2] ... [pathN] [flags] roulette <path> [path2]... [flags]
roulette [command] roulette [command]
Available Commands: Available Commands:
@ -28,7 +28,6 @@ Flags:
-p, --port int port to listen on (default 8080) -p, --port int port to listen on (default 8080)
-r, --recursive recurse into subdirectories -r, --recursive recurse into subdirectories
-v, --verbose log accessed files to stdout -v, --verbose log accessed files to stdout
--version version for roulette
Use "roulette [command] --help" for more information about a command. Use "roulette [command] --help" for more information about a command.
``` ```

View File

@ -15,7 +15,7 @@ var Recursive bool
var Verbose bool var Verbose bool
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "roulette <path1> [path2] ... [pathN]", Use: "roulette <path> [path2]...",
Short: "Serves random images from the specified directories.", Short: "Serves random images from the specified directories.",
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
var Version = "0.6.2" var Version = "0.6.3"
func init() { func init() {
rootCmd.AddCommand(versionCmd) rootCmd.AddCommand(versionCmd)