MCPcopy Create free account
hub / github.com/Notgnoshi/generative / CmdlineOptions

Class CmdlineOptions

tools/triangulate.rs:23–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#[derive(Debug, Parser)]
22#[clap(name = "triangulate", verbatim_doc_comment)]
23struct CmdlineOptions {
24 /// The log level
25 #[clap(short, long, default_value_t = tracing::Level::INFO)]
26 log_level: tracing::Level,
27
28 /// Output file to write result to. Defaults to stdout.
29 #[clap(short, long)]
30 output: Option<PathBuf>,
31
32 /// Output geometry format.
33 #[clap(short = 'O', long, default_value_t = GraphFormat::Wkt)]
34 output_format: GraphFormat,
35
36 /// Input file to read input from. Defaults to stdin.
37 #[clap(short, long)]
38 input: Option<PathBuf>,
39
40 /// How to triangulate the input geometries
41 #[clap(short, long, default_value = "whole-collection")]
42 strategy: TriangulationStrategy,
43}
44
45fn main() -> eyre::Result<()> {
46 color_eyre::install()?;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected