Updating help for multi doc

This commit is contained in:
Mike Farah 2018-06-15 20:31:29 +10:00
parent c38f19e0a9
commit 113586b5e0

4
yq.go
View File

@ -140,7 +140,7 @@ func createDeleteCmd() *cobra.Command {
var cmdDelete = &cobra.Command{ var cmdDelete = &cobra.Command{
Use: "delete [yaml_file] [path]", Use: "delete [yaml_file] [path]",
Aliases: []string{"d"}, Aliases: []string{"d"},
Short: "yq d [--inplace/-i] sample.yaml a.b.c", Short: "yq d [--inplace/-i] [--doc/-d document_index] sample.yaml a.b.c",
Example: ` Example: `
yq delete things.yaml a.b.c yq delete things.yaml a.b.c
yq delete --inplace things.yaml a.b.c yq delete --inplace things.yaml a.b.c
@ -183,7 +183,7 @@ func createMergeCmd() *cobra.Command {
var cmdMerge = &cobra.Command{ var cmdMerge = &cobra.Command{
Use: "merge [initial_yaml_file] [additional_yaml_file]...", Use: "merge [initial_yaml_file] [additional_yaml_file]...",
Aliases: []string{"m"}, Aliases: []string{"m"},
Short: "yq m [--inplace/-i] [--overwrite/-x] sample.yaml sample2.yaml", Short: "yq m [--inplace/-i] [--doc/-d document_index] [--overwrite/-x] sample.yaml sample2.yaml",
Example: ` Example: `
yq merge things.yaml other.yaml yq merge things.yaml other.yaml
yq merge --inplace things.yaml other.yaml yq merge --inplace things.yaml other.yaml