
Peter Tyser wrote:
Hi Stefano,
Hi Peter,
It'd be nice to document the new functionality you're adding. Any interest in adding a runtime usage message? It seems like that'd be pretty useful. At a minimum it would be nice to update the description in fw_env_main.c to reflect the changes you're making and/or update the README.
Agree. I think I will add a -h (help) option in fw_env_main.c, as you suggest, describing in details how to call the utility.
Is there a reason to keep fw_env_open around? It looks like just a call to env_init() after the changes above?
The reason is to provide a classical file I/O interface, allowing to use these utilities as library, too. This is consistent and more comprehensive: the API is realized by fw_env_open, fw_env_write and fw_env_close.
Best regards, Stefano