You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+32-5
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,36 @@
1
1
# Changelog
2
2
All notable changes to this project will be documented in this file.
3
3
4
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
+
CommandLineParser project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+
6
+
## [2.7.0] - 2019-12-31
7
+
### Added
8
+
- Add option groups feature by [@hadzhiyski](https://github.com/commandlineparser/commandline/pull/552) - When one or more options has group set, at least one of these properties should have set value (they behave as required).
9
+
- Add a new overload method for AutoBuild to enable HelpText customization by [@moh-hassan]().
10
+
- Improve spacing in HelpText by [@asherber](https://github.com/commandlineparser/commandline/pull/494) by adding a new option in the HelpText.
11
+
- Add a new option "SkipDefault" in UnParserSettings by [@moh-hassan](https://github.com/commandlineparser/commandline/pull/550) to add the ability of skipping the options with a default value and fix [#541](https://github.com/commandlineparser/commandline/issues/541).
12
+
- Generate a new symbolic nuget Package by [@moh-hassan](https://github.com/commandlineparser/commandline/pull/554) to Improve the debugging of Applications with the NuGet package using [symbols experience](https://github.com/NuGet/Home/wiki/NuGet-Package-Debugging-&-Symbols-Improvements).
13
+
- Add Support to [SourceLink](https://github.com/dotnet/sourcelink/blob/master/docs/README.md) in the nuget package [@moh-hassan](https://github.com/commandlineparser/commandline/pull/554).
14
+
15
+
### Changed
16
+
- Remove the Exception when both CompanyAttribute and CopyRightAttribute are null in the Excuting assembly and set the copyright text to a default value.
17
+
- Change default copyright to include current year instead of 1 by @moh-hassan.
18
+
- Enabling c# 8 and Vs2019.
19
+
20
+
### Fixed
21
+
- Fix NullReferenceException when creating a default immutable instance by [@0xced](https://github.com/commandlineparser/commandline/pull/495).
22
+
- Fix issue [#496](https://github.com/commandlineparser/commandline/issues/496) - Cryptic error message with immutable option class by[@moh-hassan](https://github.com/commandlineparser/commandline/pull/555).
23
+
- Fix UnParserExtensions.FormatCommandLine by [@moh-hassan](https://github.com/commandlineparser/commandline/pull/550) to resolve:
24
+
- Fix Quote for Options of type DatTime [#502](https://github.com/commandlineparser/commandline/issues/502) and [#528](https://github.com/commandlineparser/commandline/issues/258).
25
+
- Fix Quote for options of type TimeSpan and DateTimeOffset.
26
+
- Fix Nullable type [#305](https://github.com/commandlineparser/commandline/issues/305)
27
+
28
+
- Fix nuget Licence in nuget package by [@moh-hassan](https://github.com/commandlineparser/commandline/pull/549) and fix issue [#545](https://github.com/commandlineparser/commandline/issues/545).
29
+
- Fix PackageIconUrl warning in nuget package by [@moh-hassan](https://github.com/commandlineparser/commandline/pull/551).
30
+
- Fix immutable nullException, Improve exception message when immutable type can't be created
31
+
- Fix Custom help for verbs issue[#529](https://github.com/commandlineparser/commandline/issues/529)
32
+
- Fix --help switch throwing exception in F# [#366](https://github.com/commandlineparser/commandline/issues/366)
33
+
by [@WallaceKelly](https://github.com/commandlineparser/commandline/pull/493)
6
34
7
35
## [2.6.0] - 2019-07-31
8
36
### Added
@@ -48,7 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
48
76
### Added
49
77
- Add support to NetStandard2.0 by [@ViktorHofer](https://github.com/commandlineparser/commandline/pull/307)
50
78
- Add strong name signing [@ViktorHofer](https://github.com/commandlineparser/commandline/pull/307)
51
-
- Added AutoHelp and AutoVersion properties to control adding of implicit 'help' and 'version' options/verbs by [@Athari](https://github.com/commandlineparser/commandline/pull/256).
79
+
- Added AutoBuild and AutoVersion properties to control adding of implicit 'help' and 'version' options/verbs by [@Athari](https://github.com/commandlineparser/commandline/pull/256).
52
80
- Added simpler C# Quick Start example at readme.md by [@lythix](https://github.com/commandlineparser/commandline/pull/274).
53
81
- Add validate feature in Set parameter, and throw exception, and show usage,Issue #283 by[@e673](https://github.com/commandlineparser/commandline/pull/286).
54
82
@@ -92,5 +120,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
92
120
93
121
## [2.2.0] - 2018-01-07
94
122
95
-
## [1.9.71.2] - 2013-02-27
96
-
The starting bascode version
123
+
## [1.9.71.2] - 2013-02-27: The starting bascode version
[](https://gitter.im/gsscoder/commandline?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
6
7
7
# Command Line Parser Library for CLR and NetStandard
@@ -20,14 +20,19 @@ __This library provides _hassle free_ command line parsing with a constantly upd
20
20
21
21
# At a glance:
22
22
23
-
- Compatible with __.NET Framework 4.0+__, __Mono 2.1+ Profile__, and __.NET Core__
- Doesn't depend on other packages (No dependencies beyond standard base libraries)
25
25
- One line parsing using default singleton: `CommandLine.Parser.Default.ParseArguments(...)`.
26
26
- Automatic or one line help screen generator: `HelpText.AutoBuild(...)`.
27
-
- Supports `--help`, `--version`, `version` and `help [verb]` by default.
27
+
- Supports `--help`, `--version`, `version` and `help [verb]` by default with customization.
28
28
- Map to sequences (via `IEnumerable<T>` and similar) and scalar types, including Enums and `Nullable<T>`.
29
29
- You can also map to every type with a constructor that accepts a string (like `System.Uri`).
30
30
- Define [verb commands](https://github.com/commandlineparser/commandline/wiki/Verbs) similar to `git commit -a`.
31
+
- Support HelpText localization.
32
+
- Support ordering of options in HelpText.
33
+
- Support [Mutually Exclusive Options](https://github.com/commandlineparser/commandline/wiki/Mutually-Exclusive-Options) and Options groups.
34
+
- Support named and value options.
35
+
- Support Asynchronous programming with async and await.
- CommandLineParser.FSharp package is F#-friendly with support for `option<'a>`, see [demo](https://github.com/commandlineparser/commandline/blob/master/demo/fsharp-demo.fsx). _NOTE: This is a separate NuGet package._
33
38
- Most of features applies with a [CoC](http://en.wikipedia.org/wiki/Convention_over_configuration) philosophy.
@@ -48,7 +53,7 @@ You can utilize the parser library in several ways:
48
53
49
54
C# Quick Start:
50
55
51
-
```csharp
56
+
```cs
52
57
usingSystem;
53
58
usingCommandLine;
54
59
@@ -83,9 +88,13 @@ namespace QuickStart
83
88
}
84
89
```
85
90
86
-
C# Examples:
91
+
## C# Examples:
92
+
93
+
<details>
94
+
<summary>Click to expand!</summary>
95
+
96
+
```cs
87
97
88
-
```csharp
89
98
classOptions
90
99
{
91
100
[Option('r', "read", Required=true, HelpText="Input files to be processed.")]
0 commit comments