| 21 | #[derive(Debug, Parser)] |
| 22 | #[clap(name = "triangulate", verbatim_doc_comment)] |
| 23 | struct 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 | |
| 45 | fn main() -> eyre::Result<()> { |
| 46 | color_eyre::install()?; |
nothing calls this directly
no outgoing calls
no test coverage detected