Skip to content

Commit

Permalink
Fix --cache-dir not actually being marked as a required flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgavin committed Aug 6, 2020
1 parent 282f386 commit 7f01c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var (

func Execute(ctx context.Context) error {
rootCmd.PersistentFlags().StringVar(&cacheDir, "cache-dir", "", "Directory containing the repopositories cache created by the `pull` command")
_ = rootCmd.MarkFlagRequired("cache-dir")
_ = rootCmd.MarkPersistentFlagRequired("cache-dir")

rootCmd.AddCommand(versionCmd)

Expand Down

0 comments on commit 7f01c4d

Please sign in to comment.