‘cpt-lib’ includes a POSIX-shell option parser inside named ‘getoptions’. You can see its own documentation for writing an option parser. The built-in version of the ‘getoptions’ library is 2.5.0 and there are no plans for updating it apart from bug fixes.