Just open sourced a minimal command line arguments parser in C: https://github.com/heroseh/cmd_arger

  • Simple API
  • Auto generates help message from argument descriptions
  • Supports boolean, integer, float, enum and string arguments
  • C99 compatible
  • No dependencies (other than libc)
  • Only been tested on Linux and Windows using clang right now