Skip to content

Commit

Permalink
Fix wrong default value for --sort-by
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 2, 2024
1 parent 296de83 commit 3d24d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyze/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (c *AnalyzerConfig) InstallFlags(flags *pflag.FlagSet) {
flags.StringVarP(&c.Parser, "parser", "p", c.Parser, "Log parser (nginx-combined|nginx-json|caddy-json|goaccess)")
flags.IntVarP(&c.RefreshSec, "refresh", "r", c.RefreshSec, "Refresh interval in seconds")
flags.StringVarP(&c.Server, "server", "s", c.Server, "Server IP to filter (nginx-json only)")
flags.StringVarP(&c.SortBy, "sort-by", "S", c.Server, "Sort result by (size|requests)")
flags.StringVarP(&c.SortBy, "sort-by", "S", c.SortBy, "Sort result by (size|requests)")
flags.VarP(&c.Threshold, "threshold", "t", "Threshold size for request (only requests at least this large will be counted)")
flags.IntVarP(&c.TopN, "top", "n", c.TopN, "Number of top items to show")
flags.BoolVarP(&c.Whole, "whole", "w", c.Whole, "Analyze whole log file and then tail it")
Expand Down

0 comments on commit 3d24d1b

Please sign in to comment.