{"id":13414908,"url":"https://github.com/Nick-Lucas/EntryPoint","last_synced_at":"2025-03-14T22:32:28.375Z","repository":{"id":46883196,"uuid":"77188491","full_name":"Nick-Lucas/EntryPoint","owner":"Nick-Lucas","description":"Composable CLI Argument Parser for all modern .Net platforms. ","archived":false,"fork":false,"pushed_at":"2019-07-22T20:15:45.000Z","size":802,"stargazers_count":137,"open_issues_count":3,"forks_count":6,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-07-31T21:53:17.802Z","etag":null,"topics":["cli","command-line","core","declarative","dotnet","entrypoint","net","nuget","parser"],"latest_commit_sha":null,"homepage":"https://nick-lucas.github.io/EntryPoint/","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/Nick-Lucas.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}},"created_at":"2016-12-23T01:40:15.000Z","updated_at":"2024-07-31T12:27:04.000Z","dependencies_parsed_at":"2022-09-09T06:00:59.316Z","dependency_job_id":null,"html_url":"https://github.com/Nick-Lucas/EntryPoint","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nick-Lucas%2FEntryPoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nick-Lucas%2FEntryPoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nick-Lucas%2FEntryPoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nick-Lucas%2FEntryPoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nick-Lucas","download_url":"https://codeload.github.com/Nick-Lucas/EntryPoint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658057,"owners_count":20326459,"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":["cli","command-line","core","declarative","dotnet","entrypoint","net","nuget","parser"],"created_at":"2024-07-30T21:00:39.704Z","updated_at":"2025-03-14T22:32:27.927Z","avatar_url":"https://github.com/Nick-Lucas.png","language":"C#","readme":"[![Build status](https://ci.appveyor.com/api/projects/status/bocpkn9t5lhan1o9?svg=true)](https://ci.appveyor.com/project/Nick-Lucas/entrypoint)\n[![NuGet](https://img.shields.io/nuget/v/EntryPoint.svg)](https://www.nuget.org/packages/EntryPoint)\n[![MIT License](https://img.shields.io/github/license/Nick-Lucas/EntryPoint.svg)](https://github.com/Nick-Lucas/EntryPoint/blob/master/LICENSE)\n\n## EntryPoint\n\nComposable CLI Argument Parser for all modern .Net platforms\n\nParses arguments in the form `UtilityName [command] [-o | --options] [operands]`\n\nSupports:\n\n* .Net Standard 1.6+ (.Net Core and all future .Net releases are built on this)\n* .Net Framework 4.5+\n\nFollows the [IEEE Standard](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html) closely, but does include common adblibs such as fully named `--option` style options.\n\n## Installation\nEntryPoint is available on [NuGet](https://www.nuget.org/packages/EntryPoint):\n\n\tPM\u003e Install-Package EntryPoint\n\nPull requests and suggestions are welcome, and some small tasks are already in the Issues.\n\n## Documentation\n\n* Full documentation: https://nick-lucas.github.io/EntryPoint/\n\n* Example Implementation: https://github.com/Nick-Lucas/EntryPoint/tree/master/test/Example\n\n## As simple as...\n\nParse your application's Command Line Arguments into a declarative POCO, in one line.\n\nArguments are defined as declarative POCOs using Attributes.\n```C#\nvar arguments = Cli.Parse\u003cCliArguments\u003e(args);\nif (arguments.Option) {\n  // ...\n};\n```\n```C#\npublic class CliArguments : BaseCliArguments {\n    public CliArguments() : base(\"MyApplication\") { }\n\n    [Option(ShortName: 'o',\n            LongName: \"option-1\")]\n    public bool Option { get; set; }\n}\n```\n\nCommands have a dedicated API:\n```C#\nCli.Execute\u003cCliCommands\u003e(args);\n```\n```C#\npublic class CliCommands : BaseCliCommands {\n    [Command(\"primary\")]\n    public void Primary(string[] args) {\n    \t// Arguments Parsing and Command Code...\n    }\n}\n```\n","funding_links":[],"categories":["Frameworks, Libraries and Tools","CLI","框架, 库和工具"],"sub_categories":["Tools","工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNick-Lucas%2FEntryPoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNick-Lucas%2FEntryPoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNick-Lucas%2FEntryPoint/lists"}