{"id":23011759,"url":"https://github.com/jstmaxlol/ecah-lib","last_synced_at":"2025-10-23T04:30:57.140Z","repository":{"id":266554830,"uuid":"898677605","full_name":"jstmaxlol/ecah-lib","owner":"jstmaxlol","description":"ecah-lib is a header-only library to easily handle arguments in C++ (!)","archived":false,"fork":false,"pushed_at":"2025-01-12T14:35:52.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T15:34:59.456Z","etag":null,"topics":["argument-handler","cpp","header","library","public"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"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":"2024-12-04T20:35:54.000Z","updated_at":"2025-01-12T14:35:56.000Z","dependencies_parsed_at":"2024-12-04T21:34:23.607Z","dependency_job_id":"8bf2a3b9-22fb-499b-ac1b-aabf2cc2a00a","html_url":"https://github.com/jstmaxlol/ecah-lib","commit_stats":null,"previous_names":["jstmaxlol/ecah-lib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fecah-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fecah-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fecah-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstmaxlol%2Fecah-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstmaxlol","download_url":"https://codeload.github.com/jstmaxlol/ecah-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237775601,"owners_count":19364273,"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-handler","cpp","header","library","public"],"created_at":"2024-12-15T10:11:05.044Z","updated_at":"2025-10-23T04:30:51.849Z","avatar_url":"https://github.com/jstmaxlol.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# archived,\n### check out [salib](https://github.com/jstmaxlol/salib), basically a simpler \u0026\u0026 better version of ecah-lib\n\u0026nbsp;\n\n# ecah-lib 💊\n**ecah-lib** (**e***asier* **c***pp* **a***rgument* **h***andler* **lib***rary*) \\\nis a header-only library to easily handle arguments in **C++** *(!)*\n\n### [download ecah-lib](https://github.com/jstmaxlol/ecah-lib/blob/main/ecah-lib.h)\n\n## how to use ⁉️\nto use **ecah-lib** you need to [download](https://github.com/jstmaxlol/ecah-lib/blob/main/ecah-lib.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 \"ecah-lib.h\"` \\\nhere's an example program, for more (and more practical) example programs, check out the [./examples](https://github.com/jstmaxlol/ecah-lib/tree/main/examples) directory in this repo;\n```\n#include \"ecah-lib.h\" // Including ecah-lib in our project\nusing namespace eca; // Optionally use the `eca` namespace (Basically if you do not want to use the `eca::` prefix on ecah-lib's methods/functions)\n\nint main(int argc, char* argv[]) // argc = count of command-line arguments, argv = array of command-line argument strings\n{\n\tstring firstArgument; // Create an empty string\n\n\targ.store(firstArgument, 1, argc, argv); // Store the first argument in the string `programName` (index 1 in the argv array)\n\n\tcout \u003c\u003c \"The first argument is: \" \u003c\u003c firstArgument \u003c\u003c \"\\n\"; // Prints the first argument\n\n\treturn 0; // Returns 0 (Basically quits the program)\n}\n\n/* \n\tCompiled with g++ on Arch Linux, output;\n\t\n\t$ g++ -o test main.cpp\n\t$ ./test Hello!\n\tThe first argument is: Hello!\n*/\n```\n\n\n\u0026nbsp;\n###### jstmax@62-69-74-2E-6C-79-2F-6D-78-5F-69-6E-66-6F\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstmaxlol%2Fecah-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstmaxlol%2Fecah-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstmaxlol%2Fecah-lib/lists"}