Skip to content

Commit adfdebe

Browse files
committed
只有 GNU 才能做到精确拼写
1 parent f66d6c3 commit adfdebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/DotNetCampus.CommandLine.Tests/NamingConventionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public void Option_ExactSpelling()
271271
string? capturedValue = null;
272272

273273
// Act
274-
CommandLine.Parse(exactArgs, Flexible)
274+
CommandLine.Parse(exactArgs, CommandLineParsingOptions.Gnu)
275275
.AddHandler<ExactSpellingCommand>(o =>
276276
{
277277
capturedValue = o.SampleProperty;
@@ -287,7 +287,7 @@ public void Option_ExactSpelling()
287287
// Act & Assert
288288
Assert.ThrowsExactly<RequiredPropertyNotAssignedException>(() =>
289289
{
290-
CommandLine.Parse(kebabArgs, Flexible)
290+
CommandLine.Parse(kebabArgs, CommandLineParsingOptions.Gnu)
291291
.AddHandler<ExactSpellingCommand>(_ => { })
292292
.Run();
293293
});

0 commit comments

Comments
 (0)