Bizark.Core 2.0.9 was pushed to NuGet
Release notes:
9151 Empty argument prefix does not work and does not
Example:
MyConsoleApplication.exe Name Boris
In conjunction with ArgumentDelimiter:
MyConsoleApplication.exe Name=Boris
Also supports string surrounded by double quotes:
The value of Path will be @"C:\Program Files (x86)\Microsoft.NET\" without the leading and ending double quotes
Get from nuget:
Release notes:
9151 Empty argument prefix does not work and does not
Example:
[CmdLineOptions(ArgumentPrefix = "")] internal class MyCmdLineObject: CmdLineObject { [CmdLineArg] public string Name { get; set; } }Can be used like this from command-line
MyConsoleApplication.exe Name Boris
In conjunction with ArgumentDelimiter:
[CmdLineOptions(ArgumentPrefix = "", ArgumentDelimiter='=')] internal class MyCmdLineObject : CmdLineObject { [CmdLineArg] public string Name { get; set; } }From command line
MyConsoleApplication.exe Name=Boris
Also supports string surrounded by double quotes:
[CmdLineOptions(ArgumentPrefix = "", ArgumentDelimiter='=')] internal class MyCmdLineObject : CmdLineObject { [CmdLineArg] public string Path { get; set; } }MyConsoleApplication.exe Path="C:\Program Files (x86)\Microsoft.NET\"
The value of Path will be @"C:\Program Files (x86)\Microsoft.NET\" without the leading and ending double quotes
Get from nuget:
PM> Install-Package BizArk.Core
No comments:
Post a Comment