Skip to content

Commit 9ab547a

Browse files
committed
Version 0.3.0
1 parent a845a46 commit 9ab547a

File tree

5 files changed

+40
-27
lines changed

5 files changed

+40
-27
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
This release brings customizability to special commands and other miscellaneous improvements.
6+
7+
- It is now possible to add additional special commands to the parser
8+
- It is now possible to disable/replace built-in special commands
9+
- Default help screen can now be changed to a custom one
10+
- Parse error messages can now be localized/changed
11+
- `DateTime`, `DateOnly`, `TimeSpan` and `TimeOnly` are now valid types for options type members
12+
313
## 0.2.0
414

515
This release focuses on addressing technical dept and improving developer experience. It doesn't include any additional library features besides an important breaking change.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<PropertyGroup>
8-
<CurrentLibraryVersion>0.2.0</CurrentLibraryVersion>
8+
<CurrentLibraryVersion>0.3.0</CurrentLibraryVersion>
99
<IsReleaseBuild>false</IsReleaseBuild>
1010
</PropertyGroup>
1111

src/ArgumentParsing.Generators/AnalyzerReleases.Shipped.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,26 @@ ARGP0034 | ArgumentParsing | Error |
4848
ARGP0035 | ArgumentParsing | Warning |
4949
ARGP0036 | ArgumentParsing | Error |
5050
ARGP0037 | ArgumentParsing | Warning |
51+
52+
## Release 0.3.0
53+
54+
### New Rules
55+
56+
Rule ID | Category | Severity | Notes
57+
--------|----------|----------|-------
58+
ARGP0038 | ArgumentParsing | Warning |
59+
ARGP0039 | ArgumentParsing | Error |
60+
ARGP0040 | ArgumentParsing | Error |
61+
ARGP0041 | ArgumentParsing | Warning |
62+
ARGP0042 | ArgumentParsing | Error |
63+
ARGP0043 | ArgumentParsing | Error |
64+
ARGP0044 | ArgumentParsing | Warning |
65+
ARGP0045 | ArgumentParsing | Error |
66+
ARGP0046 | ArgumentParsing | Error |
67+
ARGP0047 | ArgumentParsing | Error |
68+
ARGP0048 | ArgumentParsing | Warning |
69+
ARGP0049 | ArgumentParsing | Error |
70+
ARGP0050 | ArgumentParsing | Error |
71+
ARGP0051 | ArgumentParsing | Hidden |
72+
ARGP0052 | ArgumentParsing | Error |
73+
ARGP0053 | ArgumentParsing | Error |
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +0,0 @@
1-
### New Rules
2-
3-
Rule ID | Category | Severity | Notes
4-
--------|----------|----------|-------
5-
ARGP0038 | ArgumentParsing | Warning |
6-
ARGP0039 | ArgumentParsing | Error |
7-
ARGP0040 | ArgumentParsing | Error |
8-
ARGP0041 | ArgumentParsing | Warning |
9-
ARGP0042 | ArgumentParsing | Error |
10-
ARGP0043 | ArgumentParsing | Error |
11-
ARGP0044 | ArgumentParsing | Warning |
12-
ARGP0045 | ArgumentParsing | Error |
13-
ARGP0046 | ArgumentParsing | Error |
14-
ARGP0047 | ArgumentParsing | Error |
15-
ARGP0048 | ArgumentParsing | Warning |
16-
ARGP0049 | ArgumentParsing | Error |
17-
ARGP0050 | ArgumentParsing | Error |
18-
ARGP0051 | ArgumentParsing | Hidden |
19-
ARGP0052 | ArgumentParsing | Error |
20-
ARGP0053 | ArgumentParsing | Error |

tests/ArgumentParsing.Tests.Unit/ArgumentParserGeneratorTests.SpecialCommands.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ internal static partial class ParseResultExtensions
648648
/// </summary>
649649
/// <param name="result">Parse result</param>
650650
/// <param name="action">Action, which will be invoked if options type is correctly parsed</param>
651-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", "0.2.0.0")]
651+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", <GENERATOR_ASSEMBLY_VERSION>)]
652652
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
653653
public static void ExecuteDefaults(this global::ArgumentParsing.Results.ParseResult<global::MyOptions> result, global::System.Action<global::MyOptions> action)
654654
{
@@ -673,7 +673,7 @@ public static void ExecuteDefaults(this global::ArgumentParsing.Results.ParseRes
673673
674674
partial class C
675675
{
676-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", "0.2.0.0")]
676+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", <GENERATOR_ASSEMBLY_VERSION>)]
677677
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
678678
public static partial global::ArgumentParsing.Results.ParseResult<global::MyOptions> ParseArguments(string[] args)
679679
{
@@ -815,7 +815,7 @@ namespace ArgumentParsing.Generated
815815
/// Default implementation of <c>--help</c> command for <see cref="global::MyOptions"/> type
816816
/// </summary>
817817
[global::ArgumentParsing.SpecialCommands.SpecialCommandAliasesAttribute("--help")]
818-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", "0.2.0.0")]
818+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", <GENERATOR_ASSEMBLY_VERSION>)]
819819
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
820820
internal sealed class HelpCommandHandler_MyOptions : global::ArgumentParsing.SpecialCommands.ISpecialCommandHandler
821821
{
@@ -872,7 +872,7 @@ internal static partial class ParseResultExtensions
872872
/// </summary>
873873
/// <param name="result">Parse result</param>
874874
/// <param name="action">Action, which will be invoked if options type is correctly parsed</param>
875-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", "0.2.0.0")]
875+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", <GENERATOR_ASSEMBLY_VERSION>)]
876876
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
877877
public static void ExecuteDefaults(this global::ArgumentParsing.Results.ParseResult<global::MyOptions> result, global::System.Action<global::MyOptions> action)
878878
{
@@ -897,7 +897,7 @@ public static void ExecuteDefaults(this global::ArgumentParsing.Results.ParseRes
897897
898898
partial class C
899899
{
900-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", "0.2.0.0")]
900+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", <GENERATOR_ASSEMBLY_VERSION>)]
901901
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
902902
public static partial global::ArgumentParsing.Results.ParseResult<global::MyOptions> ParseArguments(string[] args)
903903
{
@@ -1039,7 +1039,7 @@ namespace ArgumentParsing.Generated
10391039
/// Default implementation of <c>--help</c> command for <see cref="global::MyOptions"/> type
10401040
/// </summary>
10411041
[global::ArgumentParsing.SpecialCommands.SpecialCommandAliasesAttribute("--help")]
1042-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", "0.2.0.0")]
1042+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ArgumentParsing.Generators.ArgumentParserGenerator", <GENERATOR_ASSEMBLY_VERSION>)]
10431043
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
10441044
internal sealed class HelpCommandHandler_MyOptions : global::ArgumentParsing.SpecialCommands.ISpecialCommandHandler
10451045
{

0 commit comments

Comments
 (0)