Updated readme

This commit is contained in:
Seednode 2023-09-10 21:08:51 -05:00
parent 2f1cfe28d0
commit 494f9271f4
3 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ Flags:
-d, --debug expose debug endpoint -d, --debug expose debug endpoint
-f, --filter enable filtering -f, --filter enable filtering
-h, --help help for roulette -h, --help help for roulette
--images enable support for audio files (default true) --images enable support for image files (default true)
--maximum-files uint32 skip directories with file counts over this value (default 4294967295) --maximum-files uint32 skip directories with file counts over this value (default 4294967295)
--minimum-files uint32 skip directories with file counts under this value --minimum-files uint32 skip directories with file counts under this value
--page-length uint16 pagination length for statistics and debug pages --page-length uint16 pagination length for statistics and debug pages
@ -129,7 +129,7 @@ Flags:
--stats-file string path to optional persistent stats file --stats-file string path to optional persistent stats file
-v, --verbose log accessed files to stdout -v, --verbose log accessed files to stdout
-V, --version display version and exit -V, --version display version and exit
--videos enable support for video files --video enable support for video files
``` ```
## Building the Docker container ## Building the Docker container

View File

@ -84,7 +84,7 @@ func init() {
rootCmd.Flags().StringVar(&cacheFile, "cache-file", "", "path to optional persistent cache file") rootCmd.Flags().StringVar(&cacheFile, "cache-file", "", "path to optional persistent cache file")
rootCmd.Flags().BoolVarP(&debug, "debug", "d", false, "expose debug endpoint") rootCmd.Flags().BoolVarP(&debug, "debug", "d", false, "expose debug endpoint")
rootCmd.Flags().BoolVarP(&filtering, "filter", "f", false, "enable filtering") rootCmd.Flags().BoolVarP(&filtering, "filter", "f", false, "enable filtering")
rootCmd.Flags().BoolVar(&images, "images", true, "enable support for audio files") rootCmd.Flags().BoolVar(&images, "images", true, "enable support for image files")
rootCmd.Flags().Uint32Var(&maximumFileCount, "maximum-files", 1<<32-1, "skip directories with file counts over this value") rootCmd.Flags().Uint32Var(&maximumFileCount, "maximum-files", 1<<32-1, "skip directories with file counts over this value")
rootCmd.Flags().Uint32Var(&minimumFileCount, "minimum-files", 0, "skip directories with file counts under this value") rootCmd.Flags().Uint32Var(&minimumFileCount, "minimum-files", 0, "skip directories with file counts under this value")
rootCmd.Flags().Uint16Var(&pageLength, "page-length", 0, "pagination length for statistics and debug pages") rootCmd.Flags().Uint16Var(&pageLength, "page-length", 0, "pagination length for statistics and debug pages")
@ -98,7 +98,7 @@ func init() {
rootCmd.Flags().StringVar(&statisticsFile, "stats-file", "", "path to optional persistent stats file") rootCmd.Flags().StringVar(&statisticsFile, "stats-file", "", "path to optional persistent stats file")
rootCmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "log accessed files to stdout") rootCmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "log accessed files to stdout")
rootCmd.Flags().BoolVarP(&version, "version", "V", false, "display version and exit") rootCmd.Flags().BoolVarP(&version, "version", "V", false, "display version and exit")
rootCmd.Flags().BoolVar(&videos, "videos", false, "enable support for video files") rootCmd.Flags().BoolVar(&videos, "video", false, "enable support for video files")
rootCmd.Flags().SetInterspersed(true) rootCmd.Flags().SetInterspersed(true)

View File

@ -1119,7 +1119,7 @@ func ServePage(args []string) error {
} }
if len(paths) == 0 { if len(paths) == 0 {
return errors.New("no supported files found in provided paths") return ErrNoMediaFound
} }
if russian { if russian {