{"id":17989006,"url":"https://github.com/yashkumarverma/argument-parser-cpp","last_synced_at":"2025-06-27T03:35:17.833Z","repository":{"id":106138569,"uuid":"245263777","full_name":"YashKumarVerma/argument-parser-cpp","owner":"YashKumarVerma","description":"a simple argument parser in c++","archived":false,"fork":false,"pushed_at":"2020-03-13T02:40:13.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T15:14:17.140Z","etag":null,"topics":["argument","cli","cpp","parser"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YashKumarVerma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-05T20:43:25.000Z","updated_at":"2020-03-13T02:40:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"7127ac2f-65b0-464b-815b-8494fad97fcf","html_url":"https://github.com/YashKumarVerma/argument-parser-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"YashKumarVerma/cpp-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashKumarVerma%2Fargument-parser-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashKumarVerma%2Fargument-parser-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashKumarVerma%2Fargument-parser-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashKumarVerma%2Fargument-parser-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YashKumarVerma","download_url":"https://codeload.github.com/YashKumarVerma/argument-parser-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247115497,"owners_count":20886149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["argument","cli","cpp","parser"],"created_at":"2024-10-29T19:13:23.444Z","updated_at":"2025-04-04T03:26:18.960Z","avatar_url":"https://github.com/YashKumarVerma.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Argument Parser C++\n\na miniature argument parser for c++\n\n### Installation\n\n- Intended to be used with the [cpp template](https://github.com/YashKumarVerma/cpp-template) as a pluggable module.\n- Simply copy the `includes/parser` directory to your cpp project built using the **_cpp template_**\n\n### Usage\n\n- Load the module using `#include\"./../includes/parser/parser.h\"` in your `app.cpp` file.\n- Access the number of arguments, and character array with arguments using `int main(int argc, char* argv[])`\n- Create a parser instance, and feed it the `argc` and `argv` values `Parser parser(argc, argv);`\n- Now check if a handle is passed or not using the `parser.has(\"handle\")` method\n- To get the value of a handle, use `parser.val(\"handle\")` method\n\n### Sample\n\n- Sample code for demonstration is available in [`app.js`](../master/source/app.cpp)\n\n![Sample Code](../master/docs/api-mock.png)\n\n---\n\n**Author**: [Yash Kumar Verma](http://github.com/yashkumarverma)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashkumarverma%2Fargument-parser-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashkumarverma%2Fargument-parser-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashkumarverma%2Fargument-parser-cpp/lists"}