qapi-gen: Separate arg-parsing from generation
commit52a474180ae36362c95276d92c4eb306cc9d86a0
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:25 +0000 (9 12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:46 +0000 (10 11:37 +0200)
tree64e3443df397b31adc1afd2e5aeaef42f9775b72
parentadcb9b36c9b0a63e3b0cf81994430cfb0d720571
qapi-gen: Separate arg-parsing from generation

This is a minor re-work of the entrypoint script. It isolates a
generate() method from the actual command-line mechanism.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-4-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[invalid_char() renamed to invalid_prefix_char()]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-gen.py