argtable

ANSI C library for parsing GNU-style command-line options

brewmacoslinux
Try with needOr install directly
Source

About

ANSI C library for parsing GNU-style command-line options

Commands

argtable

Examples

Include argtable header in C program to parse command-line arguments$ #include <argtable3.h> // Use argtable functions in your C code to define and parse CLI options
Link argtable library when compiling a C program$ gcc myprogram.c -o myprogram -largtable3
Define command-line arguments with struct and parse user input$ struct arg_lit *help = arg_lit0("h", "help", "display help"); arg_parse(argc, argv, argtable);