From 21ad08aa23948a38e339a9e0fa38b50a820f56b3 Mon Sep 17 00:00:00 2001 From: rndmit Date: Tue, 14 Jun 2022 19:16:34 +0300 Subject: [PATCH] Change flags usage strings --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 9cf6edc1..a3452884 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -72,8 +72,8 @@ yq -P sample.json rootCmd.PersistentFlags().StringVar(&xmlAttributePrefix, "xml-attribute-prefix", "+", "prefix for xml attributes") rootCmd.PersistentFlags().StringVar(&xmlContentName, "xml-content-name", "+content", "name for xml content (if no attribute name is present).") rootCmd.PersistentFlags().BoolVar(&xmlStrictMode, "xml-strict-mode", false, "enables strict parsing of XML. See https://pkg.go.dev/encoding/xml for more details.") - rootCmd.PersistentFlags().BoolVar(&xmlKeepNamespace, "xml-keep-namespace", false, "enables keeping namespace after translation to yaml") - rootCmd.PersistentFlags().BoolVar(&xmlUseRawToken, "xml-raw-token", false, "use raw token. See https://pkg.go.dev/encoding/xml#Decoder.RawToken for more details.") + rootCmd.PersistentFlags().BoolVar(&xmlKeepNamespace, "xml-keep-namespace", false, "enables keeping namespace after parsing attributes") + rootCmd.PersistentFlags().BoolVar(&xmlUseRawToken, "xml-raw-token", false, "enables using RawToken method instead Token. Commonly disables namespace translations. See https://pkg.go.dev/encoding/xml#Decoder.RawToken for details.") rootCmd.PersistentFlags().BoolVarP(&nullInput, "null-input", "n", false, "Don't read input, simply evaluate the expression given. Useful for creating docs from scratch.") rootCmd.PersistentFlags().BoolVarP(&noDocSeparators, "no-doc", "N", false, "Don't print document separators (---)")