llu23
llu23
Does the invocation context param need to follow the handler's params? In my example, I have params that are optional. rootCommand.SetHandler(TestHandler, opt1, opt2); public int TestHandler(string s1, string s2 =...
fixed up Main to return value but still no outputs. ``` static int Main(string[] args) { var cmd = new RootCommand { new Argument("name", "Your name."), new Option(new[] {"--greeting", "-g"},...
Not using System.CommandLine, I am able to see output to the console... ``` using System; using System.CommandLine; using System.CommandLine.Invocation; using System.CommandLine.IO; using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; namespace Greetings {...
Here's using one args, I just didn't want to parse the args... main thing is that the output is appear when i'm not using System.CommandLine ``` using System; using System.Runtime.InteropServices;...
in the System.CommandLine usage one, changed to below and didn't see output... ``` private static int PrintGreeting(string name, string greeting, IConsole console) { if (!AttachConsole(ATTACH_PARENT_PROCESS)) { AllocConsole(); } greeting ??=...
oh sorry.... I missed the bit where you moved the attachedConsole to Main... that worked!