diff --git a/cmd/root.go b/cmd/root.go index 9a56af8..7f34f91 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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)