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

Class CmdlineOptions

tools/template.rs:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#[derive(Debug, Parser)]
10#[clap(name = "template", verbatim_doc_comment)]
11struct 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
25fn main() -> eyre::Result<()> {
26 color_eyre::install()?;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected