23 lines
747 B
Rust
23 lines
747 B
Rust
use std::path::PathBuf;
|
|
|
|
use clap::{builder::BoolishValueParser, ArgAction, Parser};
|
|
|
|
#[derive(Parser)]
|
|
pub(crate) struct Args {
|
|
/// What file contains the pipeline to evaluate.
|
|
pub source: PathBuf,
|
|
|
|
/// How to actually run the pipeline.
|
|
/// Overrides the config file. Defaults to the debug evaluator.
|
|
#[arg(short, long)]
|
|
pub evaluator: Option<eval::Available>,
|
|
|
|
/// Read this config file.
|
|
#[arg(short, long)]
|
|
pub config_path: Option<PathBuf>,
|
|
/// Turn off the startup message.
|
|
///
|
|
/// The startup message is not constant and depends on the time.
|
|
#[arg(long, env = "NO_STARTUP_MESSAGE", action = ArgAction::SetTrue, value_parser = BoolishValueParser::new())]
|
|
pub no_startup_message: bool,
|
|
}
|