diff --git a/cmd/delete.go b/cmd/delete.go index 749776d..b926eb2 100644 --- a/cmd/delete.go +++ b/cmd/delete.go @@ -8,8 +8,8 @@ import ( func init() { rootCmd.AddCommand(deleteCmd) - rootCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") - rootCmd.Flags().StringP("branch", "B", "", "Filter by branch") + deleteCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") + deleteCmd.Flags().StringP("branch", "B", "", "Filter by branch") deleteCmd.SetHelpTemplate(getDeleteHelp()) } diff --git a/cmd/list.go b/cmd/list.go index eafcf49..8fabaca 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -8,11 +8,11 @@ import ( func init() { rootCmd.AddCommand(listCmd) - rootCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") - rootCmd.Flags().StringP("branch", "B", "", "Filter by branch") - rootCmd.Flags().StringP("key", "", "", "Filter by key") - rootCmd.Flags().StringP("order", "", "", "Order of caches returned (asc/desc)") - rootCmd.Flags().StringP("sort", "", "", "Sort fetched caches (used/size/created)") + listCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") + listCmd.Flags().StringP("branch", "B", "", "Filter by branch") + listCmd.Flags().StringP("key", "", "", "Filter by key") + listCmd.Flags().StringP("order", "", "", "Order of caches returned (asc/desc)") + listCmd.Flags().StringP("sort", "", "", "Sort fetched caches (used/size/created)") listCmd.SetHelpTemplate(getListHelp()) }