inexorgame / vulkan-renderer

A new 3D game engine for Linux and Windows using C++20 and Vulkan API 1.3, in very early but ongoing development
https://inexor.org
MIT License
790 stars 34 forks source link

Consider to use a command line argument parsing library #558

Open IAmNotHanni opened 1 month ago

IAmNotHanni commented 1 month ago

Is your feature request related to a problem?

Our current command line argument parsing code works, but the problem is that it's still easy to crash. Another downside is that if invalid arguments are specified, our code does not generate an "usage" text which demonstrates which command line arguments are available and how to use them. To save time, we should consider to use something like https://github.com/CLIUtils/CLI11

Description

Replace cla_parser.hpp with https://github.com/CLIUtils/CLI11

Alternatives

Keep cla_parser code

Affected Code

https://github.com/inexorgame/vulkan-renderer/tree/main/src/vulkan-renderer/tools

Operating System

All

Additional Context

None