Skip to content

Commit 2ec6fbd

Browse files
committed
Pass through the CommandLineApplication return code
Before applying this change SharpGen was always returning 0 on my system.
1 parent 381ef76 commit 2ec6fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SharpGen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace SharpGen
2020
{
2121
class SharpGen
2222
{
23-
static void Main(string[] args)
23+
static int Main(string[] args)
2424
{
2525
CommandLineApplication app = new CommandLineApplication();
2626
app.HelpOption("-? | -h | --help");
@@ -192,7 +192,7 @@ static void Main(string[] args)
192192
}
193193
return 0;
194194
});
195-
app.Execute(args);
195+
return app.Execute(args);
196196
}
197197

198198
private static bool SetRequestDirectories(ref Compiler.CompilationRequest request)

0 commit comments

Comments
 (0)