From 6678d0af36e18cea696d195ea4cf2be2a2927336 Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 13 Aug 2023 17:43:35 -0500 Subject: [PATCH] Completely broke serveStats, whoops --- cmd/root.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index af1388e..a103b6e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -6,13 +6,12 @@ package cmd import ( "log" - "math" "github.com/spf13/cobra" ) const ( - Version string = "0.56.1" + Version string = "0.57.0" ) var ( @@ -64,7 +63,7 @@ func init() { 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(&filtering, "filter", "f", false, "enable filtering") - rootCmd.Flags().Uint32Var(&maximumFileCount, "maximum-files", math.MaxUint32, "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().Uint16VarP(&port, "port", "p", 8080, "port to listen on") rootCmd.Flags().BoolVarP(&recursive, "recursive", "r", false, "recurse into subdirectories")