We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/commandlineparser/commandline 4.6k stars, nuget 142M下载量
The text was updated successfully, but these errors were encountered:
Commandline 是一个开源包,用来完成命令行应用程序中的参数,它有如下特色
.NET Framework 4+
.NET Standard
Mono
.NET Core
CommandLine.Parser.Default.ParseArguments(...)
class Program { public class Options { [Option('v', "verbose", Required = false, HelpText = "Set output to verbose messages.")] public bool Verbose { get; set; } } static void Main(string[] args) { Parser.Default.ParseArguments<Options>(args) .WithParsed<Options>(o => { if (o.Verbose) { Console.WriteLine($"Verbose output enabled. Current Arguments: -v {o.Verbose}"); } else { Console.WriteLine($"Current Arguments: -v {o.Verbose}"); } }); } }
Sorry, something went wrong.
No branches or pull requests
https://github.com/commandlineparser/commandline
4.6k stars, nuget 142M下载量
The text was updated successfully, but these errors were encountered: