The C argument parser.
Written for C in C. No LLM/Ai/Code agents. Written for humans by a human.
First, the dependecies for feudc.
Here is all the things
currently you need to install feudc.
You need:
- A C compiler (clang, gcc, cc)
- Make
- A Linux System (Other UNIX or UNIX-like systems haven't been tested currently but should be fully working, adapt install locations in
Makefileif not)
# Clone the repository
git clone https://github.com/cpkg-dev/feudc.git
cd feudc
# Build feudc
make build
# Install feudc on your system
# Running as superuser with sudo, doas, etc
sudo make install
# Uninstall with superuser
sudo make remove| Functions (default) | Actions |
|---|---|
feudc.capture(int argc, char** argv); |
Pass in argc and argv to be used by feudc |
feudc_flag flags = { ... }; |
Passing flags you want to use into feudc |
feudc.options = (char *[]){}; |
Passing options you want to use into feudc |
feudc.catch_flags(feudc_flag, void (*function) |
Pass flags for to activate function into feudc |
feudc.catch_options(char **flags, void (*function) |
Pass options for to activate function into feudc |
| Functions (oflags) | Actions |
|---|---|
struct feudc_type command = {.oflags = 0}; |
A feudc option flag, allows options to have flags |
feudc.set_oflags(feudc_type *feudc_varient, char *option, char *flag); |
Set a feudc option flag (the prefered way) |
feudc.catch_oflags(command, void *function); |
Passing oflag you want to use into feudc to be captured |
| Functions (vflags) | Actions |
|---|---|
struct feudc_type command = {.vflags = 0}; |
A feudc value "option" flag, allows options to have values |
feudc.set_vflags(feudc_type *feudc_varient, char *option); |
Set a feudc value "option" flag (the prefered way) |
feudc.catch_vflags(command, void (*function)(char *)); |
Passing oflag you want to use into feudc to be captured |
More documentation on each section of feudc can be found here. feudc documentation