Skip to content

Commit f69252a

Browse files
fixes #56
1 parent fe0ca6d commit f69252a

File tree

8 files changed

+958
-68
lines changed

8 files changed

+958
-68
lines changed

cli/commands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ func createTrackAutoCmd() *cobra.Command {
180180
cmd.Flags().StringVar(&benchmarkName, benchNameFlag, "", "Name of the benchmark")
181181
cmd.Flags().StringVar(&profileType, profileTypeFlag, "", "Profile type (cpu, memory, mutex, block)")
182182
cmd.Flags().StringVar(&outputFormat, outputFormatFlag, "detailed", `Output format: "summary" or "detailed"`)
183-
cmd.Flags().BoolVar(&failOnRegression, failFlag, false, "Exit with non-zero code if regression exceeds threshold")
184-
cmd.Flags().Float64Var(&regressionThreshold, thresholdFlag, 0.0, "Fail when worst flat regression exceeds this percent (e.g., 5.0)")
183+
cmd.Flags().BoolVar(&failOnRegression, failFlag, false, "Exit with non-zero code if regression exceeds threshold (optional when using CI/CD config)")
184+
cmd.Flags().Float64Var(&regressionThreshold, thresholdFlag, 0.0, "Fail when worst flat regression exceeds this percent (optional when using CI/CD config)")
185185

186186
_ = cmd.MarkFlagRequired(baseTagFlag)
187187
_ = cmd.MarkFlagRequired(currentTagFlag)
@@ -219,8 +219,8 @@ func createTrackManualCmd() *cobra.Command {
219219
cmd.Flags().StringVar(&Baseline, baseTagFlag, "", "Name of the baseline tag")
220220
cmd.Flags().StringVar(&Current, currentTagFlag, "", "Name of the current tag")
221221
cmd.Flags().StringVar(&outputFormat, outputFormatFlag, "", "Output format choice choice")
222-
cmd.Flags().BoolVar(&failOnRegression, failFlag, false, "Exit with non-zero code if regression exceeds threshold")
223-
cmd.Flags().Float64Var(&regressionThreshold, thresholdFlag, 0.0, "Fail when worst flat regression exceeds this percent (e.g., 5.0)")
222+
cmd.Flags().BoolVar(&failOnRegression, failFlag, false, "Exit with non-zero code if regression exceeds threshold (optional when using CI/CD config)")
223+
cmd.Flags().Float64Var(&regressionThreshold, thresholdFlag, 0.0, "Fail when worst flat regression exceeds this percent (optional when using CI/CD config)")
224224

225225
_ = cmd.MarkFlagRequired(baseTagFlag)
226226
_ = cmd.MarkFlagRequired(currentTagFlag)

0 commit comments

Comments
 (0)