{"id":17239615,"url":"https://github.com/gibbed/ndesk.options","last_synced_at":"2026-03-07T02:33:06.169Z","repository":{"id":2973975,"uuid":"3989312","full_name":"gibbed/NDesk.Options","owner":"gibbed","description":"A (slightly) modified fork of NDesk.Options.","archived":false,"fork":false,"pushed_at":"2021-10-08T06:47:01.000Z","size":28,"stargazers_count":21,"open_issues_count":0,"forks_count":18,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-14T02:51:42.394Z","etag":null,"topics":["c-sharp","option-parser"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gibbed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-11T02:20:09.000Z","updated_at":"2025-01-29T11:03:57.000Z","dependencies_parsed_at":"2022-09-21T07:41:32.409Z","dependency_job_id":null,"html_url":"https://github.com/gibbed/NDesk.Options","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gibbed/NDesk.Options","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbed%2FNDesk.Options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbed%2FNDesk.Options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbed%2FNDesk.Options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbed%2FNDesk.Options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gibbed","download_url":"https://codeload.github.com/gibbed/NDesk.Options/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbed%2FNDesk.Options/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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":["c-sharp","option-parser"],"created_at":"2024-10-15T05:49:19.136Z","updated_at":"2026-03-07T02:33:06.147Z","avatar_url":"https://github.com/gibbed.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"NDesk.Options\n=============\n\nNDesk.Options is a program option parser for C#.\n\nSee: http://www.ndesk.org/Options\n\nOverview:\n--------\n\nIt takes advantage of C# 3.0 features such as collection initializers and\nlambda delegates to provide a short, concise specification of the option \nnames to parse, whether or not those options support values, and what to do \nwhen the option is encountered.  It's entirely callback based:\n\n\tvar verbose = 0;\n\tvar show_help = false;\n\tvar names = new List\u003cstring\u003e ();\n\n\tvar p = new OptionSet () {\n\t\t{ \"v|verbose\", v =\u003e { if (v != null) ++verbose; } },\n\t\t{ \"h|?|help\",  v =\u003e { show_help = v != null; } },\n\t\t{ \"n|name=\",   v =\u003e { names.Add (v); } },\n\t};\n\nHowever, C# 3.0 features are not required, and can be used with C# 2.0:\n\n\tint          verbose   = 0;\n\tbool         show_help = false;\n\tList\u003cstring\u003e names     = new List\u003cstring\u003e ();\n\n\tOptionSet p = new OptionSet ()\n\t  .Add (\"v|verbose\", delegate (string v) { if (v != null) ++verbose; })\n\t  .Add (\"h|?|help\",  delegate (string v) { show_help = v != null; })\n\t  .Add (\"n|name=\",   delegate (string v) { names.Add (v); });\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgibbed%2Fndesk.options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgibbed%2Fndesk.options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgibbed%2Fndesk.options/lists"}