File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -291,4 +291,12 @@ public void log_path_can_contain_forward_slash()
291
291
var arguments = ArgumentParser . ParseArguments ( "-l /some/path" ) ;
292
292
arguments . LogFilePath . ShouldBe ( "/some/path" ) ;
293
293
}
294
+
295
+ [ Test ]
296
+ public void boolean_argument_handling ( )
297
+ {
298
+ var arguments = ArgumentParser . ParseArguments ( "/nofetch /updateassemblyinfo true" ) ;
299
+ arguments . NoFetch . ShouldBe ( true ) ;
300
+ arguments . UpdateAssemblyInfo . ShouldBe ( true ) ;
301
+ }
294
302
}
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ static bool IsBooleanArgument(string switchName)
393
393
"nofetch"
394
394
} ;
395
395
396
- return booleanArguments . Contains ( switchName , StringComparer . OrdinalIgnoreCase ) ;
396
+ return booleanArguments . Contains ( switchName . Substring ( 1 ) , StringComparer . OrdinalIgnoreCase ) ;
397
397
}
398
398
}
399
399
}
You can’t perform that action at this time.
0 commit comments