private int OnExecute() { Console.WriteLine("Subcommand OnExecute"); Console.WriteLine($"IntArg:{IntArg}"); _app?.WriteInheritedOptionInfo(); return(0); }
private int OnExecute() { Console.WriteLine("SubCommand1.OnExecute"); if (Count.HasValue) { Console.WriteLine($"计数:{Count}"); } else { Console.WriteLine("没有计数,默认3"); } for (int i = 0; i < Count; i++) { Console.WriteLine($"so:{SingleOption},mo:{string.Join(",", MultipleOption)}"); } _app?.WriteInheritedOptionInfo(); return(0); }