|Lambda System 85ca0018c4||1 year ago|
|example||2 years ago|
|include||1 year ago|
|src||1 year ago|
|.gitignore||1 year ago|
|CHANGELOG.md||2 years ago|
|LICENSE.txt||1 year ago|
|README.md||1 year ago|
|meson.build||1 year ago|
Adopt is a small, cross-platform argument parsing library for C programs. While mainly targeting Unix-like systems, it should build fine with any C99-compatible C compiler.
It aims to be explicit, having no hidden state or features.
It is also modular, each file has one source file and one header. You can simply discard what you don't need.
The API is fairly compact, with names being kept short without becoming obfuscated.
Adopt also doesn't try to be a comprehensive solution.
No automatic string conversions will be done for you, nor will it check that arguments are semantically sensible.
While Adopt is mainly meant to simply be dropped into your existing code, it can be built as a static library.
To do so, you will need Meson.
meson setup build meson compile -C build
With the built
libadopt.a being placed in
PREFIX="/usr/local" cp "build/libadopt.a" "$PREFIX/lib/" cp -r "include" "$PREFIX/"
example/main.c for now.
This project is licensed under the Mozilla Public License, Version 2.0.
See LICENSE.txt for more information.