rdkcentral / ut-core

Unit Test - Core Framework
Apache License 2.0
2 stars 0 forks source link

Upgrade to use better switch method rather than getopt #59

Open Ulrond opened 1 month ago

Ulrond commented 1 month ago

Alternatives to getopt:

Argp: Part of the GNU C library, argp provides a more structured approach to argument parsing. It allows you to define argument specifications in a table-like format, including types, descriptions, and default values. This makes it easier to handle complex command-line interfaces.

Argtable3: A standalone library known for its comprehensive features and ease of use. Argtable3 supports a wide range of argument types, automatic help message generation, and error handling. Its modular design makes it adaptable to various project needs.

Popt: Originally part of the Red Hat Package Manager (RPM) project, popt is a powerful library designed for parsing command-line options and configuration files. It supports both short and long option styles, automatic help generation, and nested groups of options.

Ulrond commented 2 weeks ago

this may not be required since we can support multiple switches via -p