popt
« Back to VersTracker
Description:
Library like getopt(3) with a number of enhancements
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli parsing c-library getopt development
Install: brew install popt
About:
Popt is a C library for parsing command-line options, designed as a more powerful and flexible alternative to standard getopt. It provides advanced features like argument callbacks, option aliases, and automatic help generation, simplifying the implementation of complex CLI interfaces.
Key Features:
  • Automatic help message generation
  • Option aliases and abbreviations
  • Arbitrary argument types via callbacks
  • Internationalization (i18n) support
Use Cases:
  • Parsing complex arguments in C/C++ command-line tools
  • Standardizing CLI interfaces across Linux utilities
Alternatives:
  • getopt – Standard POSIX utility, but lacks advanced features like callbacks and aliases.
  • CLI11 – Modern C++11 library, offering a richer object-oriented interface.
Version History
Detected Version Rev Change Commit
Oct 26, 2024 9:51pm 0 VERSION_BUMP dc37e8fd