| 16 | #[derive(Debug, Parser)] |
| 17 | #[clap(name = "pack", verbatim_doc_comment)] |
| 18 | struct CmdlineOptions { |
| 19 | /// The log level |
| 20 | #[clap(short, long, default_value_t = tracing::Level::INFO)] |
| 21 | log_level: tracing::Level, |
| 22 | |
| 23 | /// Input file to read input from. Defaults to stdin. |
| 24 | #[clap(short, long)] |
| 25 | input: Option<PathBuf>, |
| 26 | |
| 27 | /// Output file to write result to. Defaults to stdout. |
| 28 | #[clap(short, long)] |
| 29 | output: Option<PathBuf>, |
| 30 | |
| 31 | /// The width of the target rectangle |
| 32 | #[clap(long, default_value_t = 100)] |
| 33 | width: u32, |
| 34 | |
| 35 | /// The height of the target rectangle |
| 36 | #[clap(long, default_value_t = 100)] |
| 37 | height: u32, |
| 38 | |
| 39 | /// Padding to apply around each geometry's bounding box |
| 40 | #[clap(long, default_value_t = 0.5)] |
| 41 | padding: f64, |
| 42 | } |
| 43 | |
| 44 | fn main() -> eyre::Result<()> { |
| 45 | color_eyre::install()?; |
nothing calls this directly
no outgoing calls
no test coverage detected