{"id":24503960,"url":"https://github.com/jstmaxlol/salib","last_synced_at":"2025-03-15T08:24:18.649Z","repository":{"id":273193185,"uuid":"918920693","full_name":"jstmaxlol/salib","owner":"jstmaxlol","description":"salib smarter argument library) is a single-file library to handle arguments in C++ | made as a successor to ecah-lib","archived":false,"fork":false,"pushed_at":"2025-01-19T10:39:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T11:27:10.357Z","etag":null,"topics":["argument","cpp","header-only","library","single-file"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jstmaxlol.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":"2025-01-19T08:17:39.000Z","updated_at":"2025-01-19T10:39:05.000Z","dependencies_parsed_at":"2025-01-19T11:37:24.467Z","dependency_job_id":null,"html_url":"https://github.com/jstmaxlol/salib","commit_stats":null,"previous_names":["jstmaxlol/salib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fsalib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fsalib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fsalib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fsalib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstmaxlol","download_url":"https://codeload.github.com/jstmaxlol/salib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243704205,"owners_count":20334115,"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","cpp","header-only","library","single-file"],"created_at":"2025-01-21T23:19:15.896Z","updated_at":"2025-03-15T08:24:18.622Z","avatar_url":"https://github.com/jstmaxlol.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# salib 💉\n**salib** (**s***marter* **a***rgument* **lib***rary*) \\\nis a single-file library to handle arguments in **C++11** | made as a successor to [ecah-lib](https://github.com/jstmaxlol/ecah-lib)\n\n### [download salib](https://github.com/jstmaxlol/ecah-lib/blob/main/ecah-lib.h)\n\n## how to use ⁉️\nto use **salib** you need to [download](https://github.com/jstmaxlol/salib/blob/main/salib.h) the library's **.h (header)** file and `#include` it in your **C++** project \\\nif the header file is in the same directory as your **.cpp** file `#include \"salib.h\"`\nhere's an example snippet;\n```\n#include \u003ciostream\u003e\n#include \u003cstring\u003e\n///\n// // example | salib\n///\n\n#include \"salib.h\"                                          // include salib\n\nint main(int argc, char** argv) {\n    sa.retrieve(argc, argv);                                // retrieve argc \u0026 argv\n\n    std::string bufferString;                               // create a buffer std::string for the first argument\n    sa.get(bufferString, 1);                                // store the first argument in the buffer std::string\n\n    std::cout \u003c\u003c \"argc=\" \u003c\u003c argc \u003c\u003c \"\\n\"                    // output argc\n              \u003c\u003c \"argv[1]=\\\"\" \u003c\u003c bufferString \u003c\u003c \"\\\"\\n\";    // output the first argument through the buffer std::string\n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstmaxlol%2Fsalib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstmaxlol%2Fsalib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstmaxlol%2Fsalib/lists"}