bunbun/src/cli.rs

18 lines
567 B
Rust
Raw Normal View History

2022-06-03 03:08:04 +00:00
use clap::{crate_authors, crate_version, Parser};
use std::path::PathBuf;
2022-06-03 06:04:59 +00:00
use tracing_subscriber::filter::Directive;
2022-06-03 03:08:04 +00:00
#[derive(Parser)]
#[clap(version = crate_version!(), author = crate_authors!())]
pub struct Opts {
2022-06-03 06:04:59 +00:00
/// Set the logging directives
#[clap(long, default_value = "info")]
pub log: Vec<Directive>,
2022-06-03 05:46:10 +00:00
/// Specify the location of the config file to read from. Needs read/write permissions.
#[clap(short, long)]
pub config: Option<PathBuf>,
/// Allow config sizes larger than 100MB.
#[clap(long)]
pub large_config: bool,
}