{"id":28149618,"url":"https://github.com/usbokirishima/wimey","last_synced_at":"2026-02-28T22:04:17.922Z","repository":{"id":290965227,"uuid":"973659044","full_name":"UsboKirishima/wimey","owner":"UsboKirishima","description":"Wimey is a lightweight C library for building command-line tools with ease. It supports both command and argument parsing, including value handling, automatic help generation, and type-safe conversions. Designed for flexibility and minimal dependencies, Wimey helps you structure your CLI programs cleanly and efficiently.","archived":false,"fork":false,"pushed_at":"2025-05-06T17:12:33.000Z","size":160,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T02:14:06.614Z","etag":null,"topics":["args","args-parser","c","command-line","cprogramming","library","parser","posix","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UsboKirishima.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-27T13:19:04.000Z","updated_at":"2025-05-06T17:12:52.000Z","dependencies_parsed_at":"2025-05-01T16:32:11.370Z","dependency_job_id":"96303bce-7259-42cf-ac79-22133545b7b2","html_url":"https://github.com/UsboKirishima/wimey","commit_stats":null,"previous_names":["usbokirishima/wimey"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UsboKirishima/wimey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2Fwimey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2Fwimey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2Fwimey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2Fwimey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UsboKirishima","download_url":"https://codeload.github.com/UsboKirishima/wimey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2Fwimey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["args","args-parser","c","command-line","cprogramming","library","parser","posix","unix"],"created_at":"2025-05-15T02:14:07.326Z","updated_at":"2026-02-28T22:04:12.910Z","avatar_url":"https://github.com/UsboKirishima.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WIMEY\n\n**Wimey** is a simple-to-use C library to parse commands and arguments, written in **less \u003c600 Lines of Code**. It supports both command and argument parsing, including value handling, automatic help generation, and type-safe conversions. Designed for flexibility and minimal dependencies, Wimey helps you structure your CLI programs cleanly and efficiently.\n\n## Features\n\n- 🧭 Command and subcommand support\n- 🧾 Positional and optional arguments\n- 🧠 Type-safe argument parsing (int, bool, string, float)\n- 📖 Built-in help message generation\n- 🧱 No external dependencies\n- 🛠️ Simple, clean API for building CLI tools\n\n## How to use\n\n```c\n#include \u003cstdio.h\u003e\n#include \"wimey.h\"\n\nint main(int argc, char **argv) {\n    // Init Wimey\n    if (wimey_init() != WIMEY_OK) {\n        ERR(\"Init failed\");\n        return 1;\n    }\n    // Config\n    struct wimey_config_t cfg = {\n        .name = \"Example\",\n        .description = \"Minimal Wimey example\",\n        .version = \"0.1\",\n        .log_level = LOG_ALL\n    };\n    wimey_set_config(\u0026cfg);\n\n    // Add inline command\n    wimey_add_command((struct wimey_command_t){\n        .key = \"hello\",\n        .has_value = true,\n        .is_value_required = true,\n        .value_name = \"name\",\n        .desc = \"Say hello\",\n        .callback = [](const char *val) {\n            INFO(\"Hello, %s!\", val);\n        }\n    });\n    // Parse args\n    wimey_parse(argc, argv);\n    // Clean up\n    wimey_free_all();\n    return 0;\n}\n\n```\n\nPlease read the [full example here](example.c).\n\n### In your project\n\n* Clone repo:\n  \n  ```bash\n  git clone https://github.com/UsboKirishima/wimey \u0026\u0026 cd wimey\n  ```\n\n* Move file to your project:\n  \n  ```bash\n  mv wimey.c ~/coding/myproj\n  mv wimey.h ~/coding/myproj\n  ```\n\n* Inlude header file``\n  \n  ```c\n  /* my_file.c */\n  #include \"wimey.h\"\n  \n  // or with -Iinclude\n  #include \u003cwimey.h\u003e\n  ```\n\n## Contributions\n\nPlease open a [pull request](https://github.com/UsboKirishima/wimey/pulls) or [issue](https://github.com/UsboKirishima/wimey/issues), thanks!\n\n## License\n\nLibrary under [Apache 2.0 License](LICENSE)\nCopyright (C) 2025 Davide Usberti \u003cusbertibox@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusbokirishima%2Fwimey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusbokirishima%2Fwimey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusbokirishima%2Fwimey/lists"}