From bd6f0d4bbfe495a60e52f0ead58e8ccf07106488 Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Tue, 29 Mar 2022 22:21:47 +0200 Subject: [PATCH] Fix target standard stream for error in sample --- eg/NavalFate/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eg/NavalFate/Program.cs b/eg/NavalFate/Program.cs index 64303cd3..f2803481 100644 --- a/eg/NavalFate/Program.cs +++ b/eg/NavalFate/Program.cs @@ -25,7 +25,7 @@ naval_fate.exe mine (set|remove) [--moored | --drifting] static int ShowHelp(string help) { Console.WriteLine(help); return 0; } static int ShowVersion(string version) { Console.WriteLine(version); return 0; } -static int OnError(string usage) { Console.WriteLine(usage); return 1; } +static int OnError(string usage) { Console.Error.WriteLine(usage); return 1; } static int Run(IDictionary arguments) {