gengetopt (devel/gengetopt) Updated: 2 years, 2 months ago Add to my watchlist

Generates a C function that uses getopt_long function

This program generates a C function that uses getopt_long function to parse the command line options, to validate them and fills a struct. Thus your program can now handle options such as: myprog --input foo.c -o foo.o --no-tabs -i 100 *.class And both long options (those that start with –) and short options (start with - and consist of only one character) can be handled. For standards about short and long options you may want to take a look at the GNU Coding Standards.

Version: 2.23 License: GPL-3+ GitHub
Displaying statistics for 1,033 users who made submissions during: until

Statistics for selected duration

2024-Apr-01 to 2024-May-01


Total Installations 13
Requested Installations 7


macOS Versions

Loading Chart

Port Versions

Loading Chart



Xcode Versions

Loading Chart

CLT Versions

Loading Chart



Variants table

Variants Count


Monthly Statistics

Can remain cached for up to 24 hours