Coverity reports few new errors in tools/command.c: 1. add_oo_definition_line and append_oo_definition_line return void on errors. It is possible lvm build would end up with incomplete option parsing. 2. add_oo_definition_line is dereferencing potentially NULL pointer oo->name. Yes, there is virtual memory, OOM killer, and the generator would most likely segfault under that conditions anyway...
Thanks, there is also other validation that should be done when parsing the command defs, which wasn't necessary when the cmd defs were generated at build time rather than at run time. Also needed are checks that options are specified with the correct value types, and at the end checks for duplicate or equivalent command defs.