| 9 | #[derive(Debug, Parser)] |
| 10 | #[clap(name = "template", verbatim_doc_comment)] |
| 11 | struct CmdlineOptions { |
| 12 | /// The log level |
| 13 | #[clap(short, long, default_value_t = tracing::Level::INFO)] |
| 14 | log_level: tracing::Level, |
| 15 | |
| 16 | /// Input file to read input from. Defaults to stdin. |
| 17 | #[clap(short, long)] |
| 18 | input: Option<PathBuf>, |
| 19 | |
| 20 | /// Output file to write result to. Defaults to stdout. |
| 21 | #[clap(short, long)] |
| 22 | output: Option<PathBuf>, |
| 23 | } |
| 24 | |
| 25 | fn main() -> eyre::Result<()> { |
| 26 | color_eyre::install()?; |
nothing calls this directly
no outgoing calls
no test coverage detected