Skip to content

Commit

Permalink
Fix bug regarding uint value with int default
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarcederberg committed Jul 28, 2021
1 parent a295ea1 commit c241b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
namespace tarot{
[Verb("get", HelpText = "Retrieve cards from the deck.")]
public class GetOptions{
[Value(0, MetaName = "amount", MetaValue = "int", Required = false, Default = 1, HelpText = "Amount of cards to retrieve.")]
[Value(0, MetaName = "amount", MetaValue = "uint", Required = false, Default = 1u, HelpText = "Amount of cards to retrieve.")]
public uint Amount{get; set;}
}

[Verb("shuffle", HelpText = "Shuffle the deck.")]
public class ShuffleOptions{
[Value(0, MetaName = "type", MetaValue = "string", Required = false, Default = "riffle", HelpText = "What shuffle to perform.")]
public string Type{get; set;}
[Value(1, MetaName = "amount", MetaValue = "int", Required = false, Default = 1, HelpText = "Number of shuffles to perform.")]
public int Amount{get; set;}
[Value(1, MetaName = "amount", MetaValue = "uint", Required = false, Default = 1u, HelpText = "Number of shuffles to perform.")]
public uint Amount{get; set;}
[Option('q',"quiet", HelpText = "Suppress stdout.")]
public bool Quiet{get; set;}
}
Expand Down

0 comments on commit c241b78

Please sign in to comment.