diff --git a/README.md b/README.md index 57a03877..1b8aeb13 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,9 @@ Available Commands: delete yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c help Help about any command merge yq m [--inplace/-i] [--doc/-d index] [--overwrite/-x] sample.yaml sample2.yaml - new yq n [--script/-s script_file] a.b.c newValueForC + new yq n [--script/-s script_file] a.b.c newValue read yq r [--doc/-d index] sample.yaml a.b.c - write yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValueForC + write yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue Flags: -h, --help help for yq diff --git a/yq.go b/yq.go index 00f7804a..60d40a8b 100644 --- a/yq.go +++ b/yq.go @@ -105,7 +105,7 @@ func createWriteCmd() *cobra.Command { var cmdWrite = &cobra.Command{ Use: "write [yaml_file] [path] [value]", Aliases: []string{"w"}, - Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValueForC", + Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue", Example: ` yq write things.yaml a.b.c cat yq write --inplace things.yaml a.b.c cat @@ -161,7 +161,7 @@ func createNewCmd() *cobra.Command { var cmdNew = &cobra.Command{ Use: "new [path] [value]", Aliases: []string{"n"}, - Short: "yq n [--script/-s script_file] a.b.c newValueForC", + Short: "yq n [--script/-s script_file] a.b.c newValue", Example: ` yq new a.b.c cat yq n a.b.c cat