{"id":16570345,"url":"https://github.com/benibela/rcmdline","last_synced_at":"2026-02-07T21:02:58.934Z","repository":{"id":8863145,"uuid":"10574588","full_name":"benibela/rcmdline","owner":"benibela","description":"Advanced command line parser for Pascal","archived":false,"fork":false,"pushed_at":"2023-04-30T18:11:05.000Z","size":170,"stargazers_count":39,"open_issues_count":1,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-04T14:06:19.150Z","etag":null,"topics":["command-line","library","parse","pascal"],"latest_commit_sha":null,"homepage":null,"language":"Pascal","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/benibela.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}},"created_at":"2013-06-08T21:39:04.000Z","updated_at":"2025-07-15T08:27:03.000Z","dependencies_parsed_at":"2024-01-09T01:02:07.057Z","dependency_job_id":"dccee310-422e-4993-92ea-65219a387939","html_url":"https://github.com/benibela/rcmdline","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/benibela/rcmdline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benibela%2Frcmdline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benibela%2Frcmdline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benibela%2Frcmdline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benibela%2Frcmdline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benibela","download_url":"https://codeload.github.com/benibela/rcmdline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benibela%2Frcmdline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29208176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T20:33:12.493Z","status":"ssl_error","status_checked_at":"2026-02-07T20:30:47.381Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["command-line","library","parse","pascal"],"created_at":"2024-10-11T21:18:30.130Z","updated_at":"2026-02-07T21:02:58.910Z","avatar_url":"https://github.com/benibela.png","language":"Pascal","funding_links":[],"categories":["Command-line"],"sub_categories":[],"readme":"TCommandLineReader\n==================\n \nThis unit provides an advanced, platform-independent command line parser for Lazarus and Delphi.\n\nIt checks for allowed options, automatically prints a help with a list of all of them, and -- contrary to the parser in the rtl -- behaves the same on Windows and Linux.\n\nExample:\n \n ```pascal\nvar cmdline: TCommandLineReader;\nbegin\n  cmdline := TCommandLineReader.create;\n  \n  //Initial declaration of some command line parameters:\n  cmdline.declareString('name', 'An example string property');\n  cmdline.declareString('foo', 'Another example string property', 'bar');\n  cmdline.declareInt('count', 'An example integer property', 123);\n  cmdline.declareFlag('flag', 'An example boolean property');\n  \n  //cmdline.parse(); \n  \n  \n  \n  //1. Parsing some command line options\n  cmdline.parse('--name=\"some name\" --count 9');\n  \n  cmdline.readString('name'); //some name\n  cmdline.readString('foo');  //bar\n  cmdline.readInt('count');   //9\n  cmdline.readFlag('flag');   //false\n  \n  cmdline.existsProperty('name'); //true\n  cmdline.existsProperty('foo');  //false\n  \n\n\n\n  //2. Parsing some other command line options\n  cmdline.parse('--foo barbar --flag');\n  \n  cmdline.readString('name'); //\n  cmdline.readString('foo');  //barbar\n  cmdline.readInt('count');   //123\n  cmdline.readFlag('flag');   //true\n  \n  cmdline.existsProperty('name'); //false\n  cmdline.existsProperty('foo');  //true\n\n\n\n\n  //3. Parsing some other command line options\n  cmdline.parse('--help');\n  \n  //prints automatically generated help to stdout and halts:\n  {\n  The following command line options are valid: \n\n  --name=\u003cstring\u003e \tAn example string property\n  --foo=\u003cstring\u003e  \tAnother example string property (default: bar)\n  --count=\u003cint\u003e   \tAn example integer property (default: 123)\n  --flag          \tAn example boolean property\n  }\n\n\n\n\n  //4. Some more advanced usage\n  cmdline.addAbbreviation('f'); //abbreviation for the last option (--flag)\n  cmdline.allowDOSStyle := true; //DOS slash options. Default is only true on Windows \n  \n  cmdline.parse('/name \"x y z\" -f /count=1 /foo=\"abc\"');\n  cmdline.readString('name'); //x y z\n  cmdline.readString('foo');  //abc\n  cmdline.readInt('count');   //1\n  cmdline.readFlag('flag');   //true\n  \n  cmdline.existsProperty('name'); //true\n  cmdline.existsProperty('foo');  //true\n\n  \n```\n\n\nSee my webpage for the detailed [rcmdline documentation](http://www.benibela.de/sources_en.html#rcmdline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenibela%2Frcmdline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenibela%2Frcmdline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenibela%2Frcmdline/lists"}