How to properly handle position non-specific program arguments? ./my_prog --format:"mp3"

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • getopt

    POSIX getopt() as a portable header library (by skeeto)

  • On unix-like systems there's a getopt function for parsing short options. Mingw-w64 has one as well, to cover Windows programs. If I care about portability, I just embed my own so it not only works everywhere, it behave the same everywhere, too.

  • optparse

    Portable, reentrant, getopt-like option parser

  • getopt_long is a GNU extension, common across unix-like systems, for parsing long options. You can find libraries for functionality as well.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts