Skip to content

Fixing the incorrect error code even when CLI exits correctly #1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Cli/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public class Program
/// Main CLI entry point
/// </summary>
/// <param name="args">CLI arguments</param>
/// <returns>0 on success, -1 on failure.</returns>
public static int Main(string[] args)
public static void Main(string[] args)
{
Parser parser = new(settings =>
{
Expand Down Expand Up @@ -102,7 +101,6 @@ public static int Main(string[] args)
}
});

return result is Parsed<object> ? 0 : -1;
}

/// <summary>
Expand Down