From 947d0cb20aa2bb086ac9dd540c8ae09d507a3281 Mon Sep 17 00:00:00 2001 From: Thomas Tendyck Date: Fri, 9 Jun 2023 10:49:28 +0200 Subject: [PATCH] cli: hide --insecure of config fetch-measurements --- cli/internal/cmd/configfetchmeasurements.go | 1 + docs/docs/reference/cli.md | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/internal/cmd/configfetchmeasurements.go b/cli/internal/cmd/configfetchmeasurements.go index 986a92733..7ee557289 100644 --- a/cli/internal/cmd/configfetchmeasurements.go +++ b/cli/internal/cmd/configfetchmeasurements.go @@ -37,6 +37,7 @@ func newConfigFetchMeasurementsCmd() *cobra.Command { cmd.Flags().StringP("url", "u", "", "alternative URL to fetch measurements from") cmd.Flags().StringP("signature-url", "s", "", "alternative URL to fetch measurements' signature from") cmd.Flags().Bool("insecure", false, "skip the measurement signature verification") + must(cmd.Flags().MarkHidden("insecure")) return cmd } diff --git a/docs/docs/reference/cli.md b/docs/docs/reference/cli.md index 4a991dec8..a6698eadd 100644 --- a/docs/docs/reference/cli.md +++ b/docs/docs/reference/cli.md @@ -108,7 +108,6 @@ constellation config fetch-measurements [flags] ``` -h, --help help for fetch-measurements - --insecure skip the measurement signature verification -s, --signature-url string alternative URL to fetch measurements' signature from -u, --url string alternative URL to fetch measurements from ```