File tree Expand file tree Collapse file tree 3 files changed +1
-32
lines changed Expand file tree Collapse file tree 3 files changed +1
-32
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace System.CommandLine.Binding
9
9
internal static class Binder
10
10
{
11
11
internal static bool IsMatch ( this string parameterName , string alias ) =>
12
- String . Equals ( alias ? . RemovePrefix ( )
12
+ string . Equals ( alias ? . RemovePrefix ( )
13
13
. Replace ( "-" , "" ) ,
14
14
parameterName ,
15
15
StringComparison . OrdinalIgnoreCase ) ;
Original file line number Diff line number Diff line change @@ -80,31 +80,6 @@ public Option(
80
80
81
81
Argument = new Argument < T > ( getDefaultValue ) ;
82
82
}
83
- public Option (
84
- string alias ,
85
- T defaultValue ,
86
- string description = null ) : base ( alias , description )
87
- {
88
- if ( defaultValue is null )
89
- {
90
- throw new ArgumentNullException ( nameof ( defaultValue ) ) ;
91
- }
92
-
93
- Argument = new Argument < T > ( ( ) => defaultValue ) ;
94
- }
95
-
96
- public Option (
97
- string [ ] aliases ,
98
- T defaultValue ,
99
- string description = null ) : base ( aliases , description )
100
- {
101
- if ( defaultValue is null )
102
- {
103
- throw new ArgumentNullException ( nameof ( defaultValue ) ) ;
104
- }
105
-
106
- Argument = new Argument < T > ( ( ) => defaultValue ) ;
107
- }
108
83
109
84
public override Argument Argument
110
85
{
Original file line number Diff line number Diff line change @@ -126,12 +126,6 @@ public void AddAlias(string alias)
126
126
}
127
127
}
128
128
129
- protected void ClearAliases ( )
130
- {
131
- _aliases . Clear ( ) ;
132
- _rawAliases . Clear ( ) ;
133
- }
134
-
135
129
public bool HasAlias ( string alias )
136
130
{
137
131
if ( string . IsNullOrWhiteSpace ( alias ) )
You can’t perform that action at this time.
0 commit comments