Commit graph

11 commits

Author SHA1 Message Date
lohhiiccc
de872facd3 feat(cli): add error functions and duplicate option tracking for CLI arguments 2026-03-05 19:54:32 +01:00
lohhiiccc
f6ca69f795 feat(cli): refactor CLI move utilities, and improve build/version metadata
- Move CLI internal headers to `includes/internal/cli/`
- Split CLI handler and parsing declarations across dedicated internal headers
- Move handler map to `option_map.c` and properly update references
- Relocate CLI utility source and test files from `utils` to `parse_utils`
- Refactor `cli.h` to only expose the public interface, move internal
  typedefs/functions out
- Update build system: add conditional git commit detection
2026-03-04 14:36:30 +01:00
lohhiiccc
f6af6473db test(cli/handlers): add unit tests for CLI handlers
- Add unit tests for handlers
- Update sources.mk to remove test_parse.c from test sources
- Fix in handle_size to set packet_size instead of count
2026-03-03 11:26:58 +01:00
lohhiiccc
88b65cc62e feat(cli): auto-generated options string for getopt_long API 2026-03-03 09:39:18 +01:00
lohhiiccc
20e3ae3a3d test: create dummy tests 2026-03-02 18:19:58 +01:00
lohhiiccc
ec3a3b8721 feat(cli): parse numeric option arguments and validate values 2026-03-02 12:48:28 +01:00
lohhiiccc
44cd05a499 typo: correct 'hanlde' to 'handle' 2026-03-01 14:46:56 +01:00
lohhiiccc
c29336ea81 typo: handle_quit -> handle_quiet 2026-02-09 15:05:03 +01:00
lohhiiccc
69b5766782 refactor: srcs/ -> src 2026-02-09 15:05:03 +01:00
lohhiiccc
d573990df8 feat: add CLI argument parsing structure 2026-02-09 15:05:03 +01:00
lohhiiccc
61bc793e9e Initial commit 2026-02-07 20:54:16 +01:00