vsg-dev / vsgXchange

Utility library for converting data+materials to/from VulkanSceneGraph
MIT License
65 stars 40 forks source link

Changed vsgconv to handle missing output_filename argument #159

Closed appcodegen closed 1 year ago

appcodegen commented 1 year ago

The vsgconv tool would fail with a confusing error message if the caller failed to specify the output_filename.

This commit adds a check for the required minimum number of argument before starting to actually parse the input arguments using the ReaderWriters and quits, emitting an appropriate error message, if that number of arguments was not specified.

Fixes #158

robertosfield commented 1 year ago

I have moved the check to before the outputFilename is assigned.