gengetopt

skeleton main.c generator

Install

All systems
curl cmd.cat/gengetopt.sh
Debian Debian
apt-get install gengetopt
Ubuntu
apt-get install gengetopt
Alpine
apk add gengetopt
Arch Arch Linux
pacman -S gengetopt
image/svg+xml Kali Linux
apt-get install gengetopt
Fedora
dnf install gengetopt
Windows (WSL2)
sudo apt-get update sudo apt-get install gengetopt
OS X
brew install gengetopt
Raspbian
apt-get install gengetopt
Docker
docker run cmd.cat/gengetopt gengetopt powered by Commando

gengetopt

skeleton main.c generator

gengetopt reads an interface description file, and writes a skeleton main.c file. gengetopt supports: long and short options, 11 types of parameters (including flag, int, double, string, and function call), and a usage message.