--naming and --macros options broken?
It is unclear how to use these options. The strings from the usage message are not accepted by the tool.
$impygen -i goldenCrate.json --naming NamingStyle.CONTROLLERS_AS_DEVICES
usage: impygen [-h] [--path PATH] [--version] [--input INPUT]
[--naming {NamingStyle.CONTROLLERS_AS_DEVICES,NamingStyle.CONTROLLERS_AS_SUBSYSTEMS}]
[--macros {MacrosStyle.SEPARATED_PREFIX,MacrosStyle.SINGLE_PREFIX}] [--opi]
impygen: error: argument --naming/-n: invalid NamingStyle value: 'NamingStyle.CONTROLLERS_AS_DEVICES'
This is a recent change. Before, the -n switch took no argument and meant "Use sensor numbers instead of sensor names in record names". Is this related to "Controllers as devices" and "Controllers as subsystems".
Edited by Andreas Persson