Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
-- header-only, platform-agnostic implementation of getopt, getopt_long, and getopt_long_only released into the public domain.
- Author: Murilo Reis <github.com/ottavm/getopt>
- License: Public Domain
- Notes
1. This implementation does not depend on any libc or OS- specific functions.
1. This implementation does not handle errors. The programmer must handle errors manually.
3. This implementation will likely behave just like the well-known standard getopt implementations, with one exception:
4. If getopt_long or getopt_long_only encounters an ambiguous or invalid option, it returns '?', and sets optarg to that specific option.
-- Examples: src/main.c