gengetopt (devel/gengetopt) Updated: 2 years, 9 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,137 users who made submissions during: until

Statistics for selected duration

2024-Oct-23 to 2024-Nov-22


Total Installations 11
Requested Installations 6


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