Skip to content

Commit 36ea690

Browse files
committed
The exit code should be != 0 when the arguments can't be parsed, so when the program is run on a build server, the build fails when GitVersion fails.
1 parent 6071946 commit 36ea690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionExe/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static int Run()
4545
Console.WriteLine("Failed to parse arguments: {0}", string.Join(" ", argumentsWithoutExeName));
4646

4747
HelpWriter.Write();
48-
return 0;
48+
return 1;
4949
}
5050

5151
if (arguments.IsHelp)

0 commit comments

Comments
 (0)