public static int Main(string[] args) { try { var options = Args.Parse <DocumentationGenerationOptions>(args); var generator = new DocumentGenerator(); generator.Generate(options.EventStoreBinaryPaths, options.OutputPath); return(0); } catch (Exception ex) { Console.Error.WriteLine(ex.Message); } return(1); }
public static int Main(string[] args) { try { var options = Args.Parse<DocumentationGenerationOptions>(args); var generator = new DocumentGenerator(); generator.Generate(options.EventStoreBinaryPaths, options.OutputPath); return 0; } catch (Exception ex) { Console.Error.WriteLine(ex.Message); } return 1; }
public static int Main(string[] args) { try { var options = CommandLine.Parse <DocumentationGenerationOptions>(args) .Cleanup() .ApplyTo <DocumentationGenerationOptions>(); var generator = new DocumentGenerator(); generator.Generate(options.EventStoreBinaryPaths, options.OutputPath); return(0); } catch (Exception ex) { Console.Write(ArgUsage.GetUsage <DocumentationGenerationOptions>()); Console.Error.WriteLine(ex.Message); } return(1); }
public static int Main(string[] args) { try { var options = CommandLine.Parse<DocumentationGenerationOptions>(args) .Cleanup() .ApplyTo<DocumentationGenerationOptions>(); var generator = new DocumentGenerator(); generator.Generate(options.EventStoreBinaryPaths, options.OutputPath); return 0; } catch (Exception ex) { Console.Write(ArgUsage.GetUsage<DocumentationGenerationOptions>()); Console.Error.WriteLine(ex.Message); } return 1; }