diff --git a/ILRepack/Application.cs b/ILRepack/Application.cs index 98a08f85..1e661e62 100644 --- a/ILRepack/Application.cs +++ b/ILRepack/Application.cs @@ -28,6 +28,17 @@ static int Main(string[] args) Exit(2); } + try + { + options.Validate(); + } + catch (Exception argumentException) + { + Console.Error.WriteLine(argumentException.Message); + Usage(); + return -2; + } + ILRepack repack = new ILRepack(options, logger); repack.Repack(); returnCode = 0;