Our great sponsors
-
cargs
A lightweight cross-platform getopt alternative that is tested on Linux, Windows, FreeBSD and macOS. Command line argument parser library for C/C++. Can be used to parse argv and argc parameters.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
getopt is definitely a solid option and a good choice for suggesting to beginners. I personally prefer cargs, and I never use getops anymore. You can check out cargs here: https://github.com/likle/cargs
When I need something more sophisticated, where long options would be nice, I reach for my own Optparse.
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.