Skip to content

Commit

Permalink
fix: double help is printed when --help is provided (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten authored Sep 14, 2024
1 parent 114d5e1 commit 15aa4b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/experiments/experiments.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func getEnvFilePath() string {
fs := pflag.NewFlagSet("experiments", pflag.ContinueOnError)
fs.StringVarP(&dir, "dir", "d", "", "Sets directory of execution.")
fs.StringVarP(&taskfile, "taskfile", "t", "", `Choose which Taskfile to run. Defaults to "Taskfile.yml".`)
fs.Usage = func() {}
_ = fs.Parse(os.Args[1:])
// If the directory is set, find a .env file in that directory.
if dir != "" {
Expand Down

0 comments on commit 15aa4b8

Please sign in to comment.