Fix --cache-dir not actually being marked as a required flag.

This commit is contained in:
Chris Gavin
2020-08-06 14:58:30 +01:00
parent 282f386ced
commit 7f01c4dc4d

View File

@@ -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)