Skip to content

Commit 15aa4b8

Browse files
authored
fix: double help is printed when --help is provided (#1806)
1 parent 114d5e1 commit 15aa4b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/experiments/experiments.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func getEnvFilePath() string {
7272
fs := pflag.NewFlagSet("experiments", pflag.ContinueOnError)
7373
fs.StringVarP(&dir, "dir", "d", "", "Sets directory of execution.")
7474
fs.StringVarP(&taskfile, "taskfile", "t", "", `Choose which Taskfile to run. Defaults to "Taskfile.yml".`)
75+
fs.Usage = func() {}
7576
_ = fs.Parse(os.Args[1:])
7677
// If the directory is set, find a .env file in that directory.
7778
if dir != "" {

0 commit comments

Comments
 (0)