-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #550 from moh-hassan/UnParser
Add ability to skip options with default values for UnParserSettings (#541) and Quote DateTime (#502)
- Loading branch information
Showing
5 changed files
with
242 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace CommandLine.Tests.Fakes | ||
{ | ||
class Options_With_Defaults | ||
{ | ||
[Option(Default = 99)] | ||
public int P1 { get; set; } | ||
[Option()] | ||
public string P2 { get; set; } | ||
[Option(Default = 88)] | ||
public int P3 { get; set; } | ||
[Option(Default = Shapes.Square)] | ||
public Shapes P4 { get; set; } | ||
} | ||
class Nuulable_Options_With_Defaults | ||
{ | ||
[Option(Default = 99)] | ||
public int? P1 { get; set; } | ||
[Option()] | ||
public string P2 { get; set; } | ||
[Option(Default = 88)] | ||
public int? P3 { get; set; } | ||
[Option(Default = Shapes.Square)] | ||
public Shapes? P4 { get; set; } | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
namespace CommandLine.Tests.Fakes | ||
{ | ||
enum Shapes | ||
public enum Shapes | ||
{ | ||
Circle, | ||
Square, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters