Skip to content

Commit 849126c

Browse files
authored
Fix error E9000 when specifying "--version" (#259)
1 parent ddfc1c7 commit 849126c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nanoFirmwareFlasher.Tool/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ private static void CheckVersion()
152152

153153
private static Task HandleErrorsAsync(IEnumerable<Error> errors)
154154
{
155+
if (errors.All(e => e.Tag == ErrorType.HelpRequestedError || e.Tag == ErrorType.VersionRequestedError))
156+
{
157+
return Task.CompletedTask;
158+
}
155159
_exitCode = ExitCodes.E9000;
156160
return Task.CompletedTask;
157161
}

0 commit comments

Comments
 (0)