{"id":25344550,"url":"https://github.com/bitmeal/argv_split","last_synced_at":"2025-10-13T18:43:08.588Z","repository":{"id":184005066,"uuid":"163445545","full_name":"bitmeal/argv_split","owner":"bitmeal","description":"split string of command line arguments to an argv-like array (supports quotes) for C++","archived":false,"fork":false,"pushed_at":"2024-04-10T08:39:24.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T05:11:23.041Z","etag":null,"topics":["argument-parser","argv","argv-parser","cli","cli-testing","command-line-parser"],"latest_commit_sha":null,"homepage":"","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/bitmeal.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}},"created_at":"2018-12-28T20:05:42.000Z","updated_at":"2025-03-18T10:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6fa44d6-385e-4169-8c4c-7741a54fa606","html_url":"https://github.com/bitmeal/argv_split","commit_stats":null,"previous_names":["bitmeal/argv_split"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitmeal/argv_split","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmeal%2Fargv_split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmeal%2Fargv_split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmeal%2Fargv_split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmeal%2Fargv_split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitmeal","download_url":"https://codeload.github.com/bitmeal/argv_split/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmeal%2Fargv_split/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016600,"owners_count":26085852,"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-10-13T02:00:06.723Z","response_time":61,"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":["argument-parser","argv","argv-parser","cli","cli-testing","command-line-parser"],"created_at":"2025-02-14T11:35:23.886Z","updated_at":"2025-10-13T18:43:08.583Z","avatar_url":"https://github.com/bitmeal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/bitmeal/argv_split.svg?branch=master)](https://travis-ci.com/bitmeal/argv_split)  \n[ G++-5/6/7 ]\n\n# argv split\nSimple parser to split a command line string into its components, like you'll find them in `argv`. Splits on whitespace and keeps quoted parts together. Supports single and double quotes; quotes can be nested (one level, eg: `\"foo 'bar'\"`) and will not be treated as quotes if escaped by a backslash (`\\\"` or `\\'`).  \nTests are in `tests` directory and use CMake-integrated testing; call `make all` and `make test`.\n  \n## use\nHeader only. Include and use as shown. Parameter to the constructor can be omited, but your arguments array will be missing the program name; you can allway specify it explicitly in your arguments string.\n```C++\nargv_parser parser(\"programm_name\");\nparser.parse(\"-p \\\"my flag param\\\" --switch='switch value'\");\nconst char** my_argv = parser.argv();\n```\n  \n## tests\nUses CMake-integrated testing: Tests are configured in `tests/CMakeLists.txt`, using the provided function `add_cmdline_test( \u003ctest_name\u003e \"\u003cquoted command line string\u003e\" )`. This will generate a test-units C++ code, including the given string of arguments. On execution, the arguments given on the command line and the arguments extracted from the given string are compared - test passes if they match.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitmeal%2Fargv_split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitmeal%2Fargv_split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitmeal%2Fargv_split/lists"}