Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A good C alternative for Boost.Program_options?

Any good alternative written in C to replace Boost.Program_options? Given it's able to parse:

  1. Short options like -h
  2. Long options like --help --input-file
  3. Parse repeated keys/options
  4. Accepts key-value pairs: --mysql=/usr/lib
  5. Parsing environmental variables and XML/INI files is optional.
like image 223
Viet Avatar asked Dec 03 '22 06:12

Viet


1 Answers

If you are okay with the GPL license, you want GNU getopt.

like image 76
R Samuel Klatchko Avatar answered Dec 08 '22 15:12

R Samuel Klatchko