{"id":29734091,"url":"https://github.com/antonako1/arghand","last_synced_at":"2025-07-25T10:39:18.075Z","repository":{"id":302115018,"uuid":"1002547480","full_name":"Antonako1/Arghand","owner":"Antonako1","description":"Single header argument parsing and handling library made with C++11","archived":false,"fork":false,"pushed_at":"2025-07-09T22:32:32.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T04:54:03.132Z","etag":null,"topics":["cpp","library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Antonako1.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-06-15T17:44:27.000Z","updated_at":"2025-07-09T19:18:35.000Z","dependencies_parsed_at":"2025-06-30T17:26:28.025Z","dependency_job_id":"fb4da990-1d4a-4f38-8ee6-041806b28c48","html_url":"https://github.com/Antonako1/Arghand","commit_stats":null,"previous_names":["antonako1/arghand"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Antonako1/Arghand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2FArghand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2FArghand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2FArghand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2FArghand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antonako1","download_url":"https://codeload.github.com/Antonako1/Arghand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antonako1%2FArghand/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266991306,"owners_count":24017740,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpp","library"],"created_at":"2025-07-25T10:39:16.828Z","updated_at":"2025-07-25T10:39:18.050Z","avatar_url":"https://github.com/Antonako1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arghand - Argument handling single header library made with C++11\n\n## Usage and documentation\n\n### Documentation\n\nRead Arghand\\include\\Arghand.h for documentation\n\n### Example program\n```cpp\n#include \u003cArghand.h\u003e\n\nint main(int argc, char* argv[]) {\n    Arghand handler;\n    std::vector\u003cCmdOption\u003e options = {\n        CMD_OPTION(\"h\", \"help\",     HelpOptionDefault,      \"\",           \"Display help information\"),\n        CMD_OPTION(\"v\", \"\",  VersionOptionDefault,   \"\",           \"Display version information\"),\n        CMD_OPTION(\"o\", \"output\",   InputDefault,           \"output.txt\", \"Specify output file\"),\n        CMD_OPTION(\"l\", \"list\",     ListInputDefault,       \"a,b\",           \"Specify a list of values (comma-separated)\"),\n    };\n    handler.SetCmdOptions(options);\n    handler.SetSeparator(',');\n    handler.SetParserOptions(\n        (ParserOptions::DefaultOptions |\n        ParserOptions::VersionDisplayFooter )\n//        \u0026 ~ParserOptions::HelpDisplayHeader\n    );\n\n    handler.SetApplicationName(\"Arghand-test_app\");\n    handler.SetHelpHeader(\"Arghand - A simple command line argument handler.\");\n    handler.SetHelpFooter(\"\\nMaintained at https://github.com/Antonako1/Arghand.\");\n    handler.SetLicense(\"Licensed under the BSD-2-Clause License.\");\n    handler.SetVersion(handler.VersionNumToString(1, 0, 0));\n    handler.SetVersionFooter(\"Maintained at https://github.com/Antonako1/Arghand.\");\n    \n    Arghand::ParseResult res = handler.parse(argc, argv);\n    if(res == Arghand::ParseResult::Error){\n        std::cerr \u003c\u003c \"Error parsing command line arguments.\" \u003c\u003c std::endl;\n        return 1;\n    }\n    \n    if(handler[\"o\"]){\n        std::cout \u003c\u003c \"Output file specified: \" \u003c\u003c handler.GetValue(\"o\") \u003c\u003c std::endl;\n    } else if(handler[\"list\"]){\n        std::vector\u003cstd::string\u003e listValues = handler.GetValues(\"l\");\n        std::cout \u003c\u003c \"List values specified: \";\n        for (const auto\u0026 value : listValues) {\n            std::cout \u003c\u003c value \u003c\u003c \", \";\n        }\n        std::cout \u003c\u003c std::endl;\n    }\n    \n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonako1%2Farghand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonako1%2Farghand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonako1%2Farghand/lists"}