From 6390763171dfbbf6fd99fb96c7f089840ae8555f Mon Sep 17 00:00:00 2001 From: Sean Pino Date: Tue, 20 Feb 2024 13:05:52 -0500 Subject: [PATCH] Fixed typo in user guide --- site/content/user_guide.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/content/user_guide.md b/site/content/user_guide.md index 1b7a58d..a1cf00a 100644 --- a/site/content/user_guide.md +++ b/site/content/user_guide.md @@ -337,15 +337,15 @@ If your command has multiple required flags that are not [grouped](#flag-groups) when one or more flags have not been set, mark them as required: ```go rootCmd.Flags().StringVarP(&Region, "region", "r", "", "AWS region (required)") -rootCmd.Flags().StringVarP(&Region, "failoverRegion", "f", "", "AWS failover region (required)") -rootCmd.MarkFlagsRequired("region", "failoverRegion") +rootCmd.Flags().StringVarP(&Failover, "failover", "f", "", "AWS failover region (required)") +rootCmd.MarkFlagsRequired("region", "failover") ``` Or, for multiple persistent flags: ```go rootCmd.PersistentFlags().StringVarP(&Region, "region", "r", "", "AWS region (required)") -rootCmd.PersistentFlags().StringVarP(&Region, "failoverRegion", "f", "", "AWS failover region (required)") -rootCmd.MarkPersistentFlagsRequired("region", "failoverRegion") +rootCmd.PersistentFlags().StringVarP(&Failover, "failover", "f", "", "AWS failover region (required)") +rootCmd.MarkPersistentFlagsRequired("region", "failover") ```