public ShowUsage ( |
||
writer | ||
리턴 | void |
public static int Main(string[] args) { var flags = new Flags(args); if (flags.HelpRequested) { flags.ShowUsage(Console.Out); return 0; } ConfigureLogging(flags.Verbose); using (var program = new Program(flags.WorkingDirectory, flags.ErrorWriter)) { return program.Run() == 0 ? 0 : -1; } }
public static int Main(string[] args) { var flags = new Flags(args); if (flags.HelpRequested) { flags.ShowUsage(Console.Out); return(0); } ConfigureLogging(flags.Verbose); using (var program = new Program(flags.WorkingDirectory, flags.ErrorWriter)) { return(program.Run() == 0 ? 0 : -1); } }