https://github.com/bylissss/komut
Basic single file C argument parser
https://github.com/bylissss/komut
argparse args argument-parser c single-file
Last synced: 10 months ago
JSON representation
Basic single file C argument parser
- Host: GitHub
- URL: https://github.com/bylissss/komut
- Owner: Bylissss
- License: mit
- Created: 2025-02-02T17:47:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-04T03:33:50.000Z (over 1 year ago)
- Last Synced: 2025-04-01T17:26:40.425Z (about 1 year ago)
- Topics: argparse, args, argument-parser, c, single-file
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Komut
Basic single file C argument parser
## Usage
- Just include repo root or copy paste file (it has license as comment inside).
- Possibly create a function that deals with arg creation and returns to array of them `arg args[]`.
- Call `komut_init()` from `main` and fill first parameter argc, second argv, third `args` whe created in before and third is a function whats gonna happen when no input given.
For deeper understanding check `examples` folder
## Features Yet to Add
- NONE, UNIX short( `-` ) and long( `--` ), DOS ( `/` )(only on windows) prefix
- Equal suffix
- Usage message generation
- Returning wanted primitive type
- Suboptions
- Optinal and required options
- Hinting in case of typos
- Case sensitivity