--properties-array-brackets does not seem to work when reading properties files #2253
Open
Description
Describe the bug
--properties-array-brackets does not seem to work when reading properties files.
Version of yq: v4.44.6
Operating system: linux
Installed via: archlinux package https://archlinux.org/packages/extra/x86_64/go-yq/
Input Properties
arr[0].name=test
arr[0].value=5
arr[1].name=test2
arr[1].value=10
Command
The command you ran:
yq -p=props -o=y --properties-array-brackets input.properties
Actual behavior
arr[0]:
name: test
value: "5"
arr[1]:
name: test2
value: "10"
Expected behavior
arr:
- name: test
value: "5"
- name: test2
value: "10"