Skip to content

Commit 72e07fa

Browse files
authored
Fix exit code for '--version' (#1273)
1 parent 60a73e5 commit 72e07fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2727
- Fix analyzer [RCS1257](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1257) ([PR](https://github.com/dotnet/roslynator/pull/1264))
2828
- Fix analyzer [RCS1259](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1259) ([PR](https://github.com/dotnet/roslynator/pull/1268))
2929
- [CLI] Fix reading of non-existent redirected input on git bash ([PR](https://github.com/dotnet/roslynator/pull/1265))
30+
- [CLI] Fix exit code for `roslynator --version` ([PR](https://github.com/dotnet/roslynator/pull/1273))
3031

3132
## [4.6.2] - 2023-11-10
3233

src/CommandLine/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private static int Main(string[] args)
114114
if (e.Any(f => f.Tag == ErrorType.VersionRequestedError))
115115
{
116116
Console.WriteLine(typeof(Program).GetTypeInfo().Assembly.GetName().Version);
117-
success = false;
117+
success = true;
118118
return;
119119
}
120120

0 commit comments

Comments
 (0)