File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
System.CommandLine.Suggest.Tests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ await Process.ExecuteAsync(
155
155
156
156
stdOut . ToString ( )
157
157
. Should ( )
158
- . Be ( $ "/? { NewLine } /h { NewLine } -? { NewLine } --apple { NewLine } --banana { NewLine } --cherry { NewLine } --durian { NewLine } -h{ NewLine } --help { NewLine } --version { NewLine } ") ;
158
+ . Be ( $ "--apple { NewLine } --banana { NewLine } --cherry { NewLine } --durian { NewLine } --help { NewLine } --version { NewLine } -? { NewLine } -h{ NewLine } /? { NewLine } /h { NewLine } ") ;
159
159
}
160
160
}
161
161
}
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ public override IEnumerable<string> GetSuggestions(string textToMatch = null)
192
192
. Concat ( dynamicSuggestions )
193
193
. Concat ( typeSuggestions )
194
194
. Distinct ( )
195
- . OrderBy ( c => c )
195
+ . OrderBy ( c => c , StringComparer . OrdinalIgnoreCase )
196
196
. Containing ( textToMatch ) ;
197
197
}
198
198
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public virtual IEnumerable<string> GetSuggestions(string textToMatch = null)
146
146
return this . ChildSymbolAliases ( )
147
147
. Concat ( argumentSuggestions )
148
148
. Distinct ( )
149
- . OrderBy ( symbol => symbol )
149
+ . OrderBy ( symbol => symbol , StringComparer . OrdinalIgnoreCase )
150
150
. Containing ( textToMatch ) ;
151
151
}
152
152
You can’t perform that action at this time.
0 commit comments