python
python copied to clipboard
`--get` hides fields with default values
I'd like to start a discussion on having --get show all values by default, not just changed ones. It will help with discovery and debugging. For example, --get bluetooth will not even give a hint that there is a --get bluetooth.mode if you are on the default mode. This is surprising to me.
Thought of a few improvements around this
- Mentioning that
--getand--get blahdoesn't show all the properties (likely a human-readable message to stderr) - Default to showing all properties
- Allow passing in
--show-changedor--filter-defaultif people like the current behavior
If we can agree on what work there is to be done, I'm happy to try making the pull requests.
This would involve importing the index of all available commands from the latest firmware.