{"id":20979296,"url":"https://github.com/zheoni/parsegar","last_synced_at":"2025-10-29T02:40:50.895Z","repository":{"id":129116084,"uuid":"204164929","full_name":"Zheoni/parsegar","owner":"Zheoni","description":"Another and worse C++ command line argument parser","archived":false,"fork":false,"pushed_at":"2019-11-03T14:53:27.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T06:24:01.414Z","etag":null,"topics":["argument-parser","command-line-parser","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zheoni.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}},"created_at":"2019-08-24T14:00:49.000Z","updated_at":"2020-10-23T11:11:38.000Z","dependencies_parsed_at":"2023-03-30T17:19:28.804Z","dependency_job_id":null,"html_url":"https://github.com/Zheoni/parsegar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fparsegar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fparsegar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fparsegar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fparsegar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zheoni","download_url":"https://codeload.github.com/Zheoni/parsegar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382785,"owners_count":20282008,"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-parser","command-line-parser","cpp","parser"],"created_at":"2024-11-19T05:13:04.014Z","updated_at":"2025-10-29T02:40:45.858Z","avatar_url":"https://github.com/Zheoni.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PARSEGAR\n\nThis is another and worse C++ parser for the command line arguments.\nI have done this so simple and basic because I need it for other\nprojects, therefore it lacks some features, but it may be updated in\nthe future.\n\n## Usage\n\nInclude the `parsegar.hpp` header file. To set your arguments or flags\ncreate a argsConfig object and use addFlag or addArgument to add them.  \nNext create a argsParser object with the config object, argc and argv.\n**This can throw exceptions** (std::runtime_error) if the input has errors.\n\nA simple example:\n\n```c++\n#include \"parsegar.hpp\"\n#include \u003ciostream\u003e\n\nint main(int argc, const char** argv) {\n    argsConfig config;\n    config.addFlag(\"-a\");\n    config.addFlag(\"-h\");\n    config.addArgument(\"-o\");\n\n    argsParser parser(config, argc, argv);\n\n    std::cout \u003c\u003c \"-a: \" \u003c\u003c parser.getFlag(\"-a\") \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"-h: \" \u003c\u003c parser.getFlag(\"-h\") \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"-o: \" \u003c\u003c parser.getArgument(\"-o\") \u003c\u003c std::endl;\n}\n```\n\n## Compiling\n\nRequires **c++11** at least. You have to also compile `parsegar.cpp`.  \nFor example the above example is compiled with the following command:  \n`clang++ -std=c++11 parsegar.cpp main.cpp`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzheoni%2Fparsegar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzheoni%2Fparsegar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzheoni%2Fparsegar/lists"}