Modified usage info
This commit is contained in:
parent
31f138d9ec
commit
103f8cb456
|
@ -15,7 +15,7 @@ Builds available [here](https://cdn.seedno.de/builds/roulette).
|
|||
## Usage output
|
||||
```
|
||||
Usage:
|
||||
roulette <path1> [path2] ... [pathN] [flags]
|
||||
roulette <path> [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.
|
||||
```
|
|
@ -15,7 +15,7 @@ var Recursive bool
|
|||
var Verbose bool
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "roulette <path1> [path2] ... [pathN]",
|
||||
Use: "roulette <path> [path2]...",
|
||||
Short: "Serves random images from the specified directories.",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var Version = "0.6.2"
|
||||
var Version = "0.6.3"
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(versionCmd)
|
||||
|
|
Loading…
Reference in New Issue