Use the specialized
getopts library for argument parsing rather than a hand rolled one. It streamlines the CLI format and handles the edge cases for us.
It also allows future improvement at a lower cost and improves the separation between the scripting engine and the frontend used to call it.
This increase the binary by only 0.9%, as opposed to CLAP's 12%
Related: !896 (closed)