Registry / cli / argtable3

argtable3

JSON →
library3.3.1vcpkgunverified

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options

vcpkg install argtable3
INSTALL
IMPORT
SIG · ARGTABLE3
A
argtable3
clicppv3.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

argtable3.h
#include <argtable3.h>

Parse command-line arguments with argtable3

#include <argtable3.h> #include <stdio.h> int main(int argc, char* argv[]) { struct arg_lit *help = arg_lit0("h", "help", "print help"); struct arg_end *end = arg_end(20); void* argtable[] = {help, end}; if (arg_nullcheck(argtable) != 0) return 1; int nerrors = arg_parse(argc, argv, argtable); if (help->count > 0) { printf("Usage: %s\n", argv[0]); arg_print_syntax(stdout, argtable, "\n"); } arg_freetable(argtable, sizeof(argtable)/sizeof(argtable[0])); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.3.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
30
Resources

No resource links recorded.

argtable3 — pip install argtable3 · libregistry