{"id":18584175,"url":"https://github.com/ellectroid/clinput-arg-parser","last_synced_at":"2025-08-23T18:04:39.342Z","repository":{"id":253941562,"uuid":"803683489","full_name":"ellectroid/clinput-arg-parser","owner":"ellectroid","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-04T09:35:45.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T21:00:59.214Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ellectroid.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-05-21T07:37:25.000Z","updated_at":"2024-09-04T09:35:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"03f19ee2-1b85-4b55-bc7b-10f9056c0402","html_url":"https://github.com/ellectroid/clinput-arg-parser","commit_stats":null,"previous_names":["ellectroid/clinput-arg-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ellectroid/clinput-arg-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2Fclinput-arg-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2Fclinput-arg-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2Fclinput-arg-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2Fclinput-arg-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ellectroid","download_url":"https://codeload.github.com/ellectroid/clinput-arg-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2Fclinput-arg-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271760492,"owners_count":24816430,"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-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-11-07T00:26:31.013Z","updated_at":"2025-08-23T18:04:39.296Z","avatar_url":"https://github.com/ellectroid.png","language":"C++","readme":"This is a command line argument parser.  \n  \nThis is a demo project.  \n  \nExample:  \nConsole input:   \n\u003eapp.exe action=makediskimage inputpath=\\\\.\\PhysicalDrive0 verbosity-level=2\n  \nClinput output (configurable):  \nRAM contains   \n\u003estruct clinput_output{  \n\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;char input_file_path[32];  \n\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;int action_code;  \n\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;int verbosity_level;  \n\u003e}  \n  \n(can freely move members of struct around in the definition, resize the array and it won't break anything!!!)  \n  \nKey points:  \n-Simplicity of use: easy to configure for your app's argument names and their parse types (see \"impl\" files)  \n-Output data structure from the console input arguments is fully user-defined. No limits.  \n-Modularity: can hook up another parser function for any type, user-defined types  \n-Internal modularity: data is processed in multiple stages, so things can be easily adjusted, improved  \n-Error checking: functions return error codes  \n-Handles only the arguments provided, if there is an unknown argument, throws an error, tells what argument wasn't recognized  \n-It doesn't care about specific output types. You can easily specify your own type with any memory layout and your own parser behavior (which is the point)  \n-Each parser is just a single function with a fixed signature, the parser is provided with input data and output type information. The parser function can do anything.  \n-A couple basic parsers included (for output types argument value charstr to charstr, to int, to float, unsigned long long, signed long long)  \n-An example that takes advantage of modularity and customizability by using a default integer parser, as well as user-defined types, and a custom argument value string to integer parser  \n  \nHow it works:  \nWhen you pass arguments, they're a bunch of strings \"app.exe\" \"argstring1\" \"argstring2\" \"argstring3\".  \nStage 1 calls \"raw argument to argname=argval\". It finds \"=\" and breaks the argument apart into separate argument name strings and value strings.  \nStage 2 binds parser functions to types (a vtable).  \nStage 3 binds user-defined argument names to types, output memory structure  \nStage 4 parser takes output of stage 1 (argname=argval), goes through every argument, looks up its type and invokes the corresponding parser  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellectroid%2Fclinput-arg-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellectroid%2Fclinput-arg-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellectroid%2Fclinput-arg-parser/lists"}