From ba83b38c2d3467694285372ada9ce102a752e1b3 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 22 Nov 2024 17:16:31 +0100 Subject: [PATCH] nitpicks --- internal/cmd/flags.go | 2 +- internal/cmd/liquid.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/flags.go b/internal/cmd/flags.go index 859a7446..31a668a8 100644 --- a/internal/cmd/flags.go +++ b/internal/cmd/flags.go @@ -152,5 +152,5 @@ type liquidQuotaOperationFlags struct { func (l *liquidQuotaOperationFlags) AddToCmd(cmd *cobra.Command) { cmd.Flags().StringVarP(&l.endpoint, "endpoint", "e", "", "query a liquid running locally") - cmd.Flags().StringSliceVarP(&l.quotaValues, "quota_values", "q", nil, "quota values $RESURCE=$VALUE (comma separated list)") + cmd.Flags().StringSliceVarP(&l.quotaValues, "quota-values", "q", nil, "quota values $RESOURCE=$VALUE (comma-separated list)") } diff --git a/internal/cmd/liquid.go b/internal/cmd/liquid.go index 407dce19..928005d7 100644 --- a/internal/cmd/liquid.go +++ b/internal/cmd/liquid.go @@ -384,7 +384,7 @@ func (c *liquidSetQuotaCmd) Run(cmd *cobra.Command, args []string) error { endpoint := c.liquidQuotaOperationFlags.endpoint if len(c.liquidQuotaOperationFlags.quotaValues) == 0 { - return errors.New("flag --quota_values is required") + return errors.New("flag --quota-values is required") } var serviceQuotaRequest liquid.ServiceQuotaRequest serviceQuotaRequest.Resources = make(map[liquid.ResourceName]liquid.ResourceQuotaRequest) @@ -392,7 +392,7 @@ func (c *liquidSetQuotaCmd) Run(cmd *cobra.Command, args []string) error { for _, resourceQuotaString := range resourceQuotaStrings { parts := strings.Split(resourceQuotaString, "=") if len(parts) != 2 { - return errors.New("quota values should be formatted $RESOURCE1=$VALUE1,$RESOURCE2=$VALUE2") + return errors.New("quota values should be formatted like $RESOURCE1=$VALUE1,$RESOURCE2=$VALUE2") } quota, err := strconv.ParseUint(parts[1], 10, 64) if err != nil {