{"id":17690439,"url":"https://github.com/hughperkins/cppsimpleargsparser","last_synced_at":"2025-09-04T02:35:40.234Z","repository":{"id":136207666,"uuid":"11003441","full_name":"hughperkins/cppsimpleargsparser","owner":"hughperkins","description":"Simple C++ args parser.  Easy to use.  Automatically provides checking and usage printout.","archived":false,"fork":false,"pushed_at":"2013-06-27T17:46:58.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T02:47:21.894Z","etag":null,"topics":[],"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/hughperkins.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}},"created_at":"2013-06-27T17:34:55.000Z","updated_at":"2017-06-29T22:43:58.000Z","dependencies_parsed_at":"2023-03-13T11:04:25.519Z","dependency_job_id":null,"html_url":"https://github.com/hughperkins/cppsimpleargsparser","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/hughperkins%2Fcppsimpleargsparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fcppsimpleargsparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fcppsimpleargsparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fcppsimpleargsparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hughperkins","download_url":"https://codeload.github.com/hughperkins/cppsimpleargsparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385414,"owners_count":20768672,"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":[],"created_at":"2024-10-24T11:50:52.900Z","updated_at":"2025-03-30T22:14:55.612Z","avatar_url":"https://github.com/hughperkins.png","language":"C++","readme":"cppsimpleargsparser\n===================\n\nSimple C++ args parser.  Easy to use.  Automatically provides checking and usage printout.\n\nLet's say we want to accept three integers on our commandline: n, iterations, and threads.\n\nIn our program, we put:\n\n    #include \"args.h\"\n\n    int main( int argc, char *argv[] ) {\n        int n, iterations, threads;\n        Args( argc, argv ).arg( \"n\", \u0026n ).arg( \"iterations\", \u0026iterations ).arg( \"threads\", \u0026threads ).go();\n        // that's it!\n\n        // rest of program here.\n\n        return 0;\n    }\n\nIf we run the program with no arguments, we get:\n\n    \u003e ./testArgs\n    Usage: ./testArgs [n] [iterations] [threads]\n\nWe can try this usage:\n\n    \u003e ./testArgs 4 3 12\n    n: 4\n    iterations: 3\n    threads: 12\n\nRequirements\n============\n\n- C++\n- C++ standard library\n- nothing else!\n\nLicense\n=======\n\nMPL 2.0\n\nThis means you can use it in your own program without needing to \nuse any special license on your own program.  You must keep\nthe copyright notice on the args.h file, and the license \nheader.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughperkins%2Fcppsimpleargsparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhughperkins%2Fcppsimpleargsparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughperkins%2Fcppsimpleargsparser/lists"}