diff options
Diffstat (limited to 'src/linker/Linker/Driver.cs')
-rw-r--r-- | src/linker/Linker/Driver.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/linker/Linker/Driver.cs b/src/linker/Linker/Driver.cs index b72250775..1a47d1443 100644 --- a/src/linker/Linker/Driver.cs +++ b/src/linker/Linker/Driver.cs @@ -145,11 +145,6 @@ namespace Mono.Linker } } - static void ErrorUnrecognizedOption (string optionName) - { - Console.WriteLine ($"Unrecognized command-line option: '{optionName}'"); - } - static void ErrorMissingArgument (string optionName) { Console.WriteLine ($"Missing argument for '{optionName}' option"); @@ -189,7 +184,7 @@ namespace Mono.Linker while (arguments.Count > 0) { string token = arguments.Dequeue (); if (token.Length < 2) { - ErrorUnrecognizedOption (token); + context.LogError ($"Unrecognized command-line option: '{token}'", 1015); return -1; } @@ -563,7 +558,7 @@ namespace Mono.Linker } } - ErrorUnrecognizedOption (token); + context.LogError ($"Unrecognized command-line option: '{token}'", 1015); return -1; } |