2022-06-03 03:08:04 +00:00
|
|
|
use clap::{crate_authors, crate_version, Parser};
|
2020-07-05 00:40:20 +00:00
|
|
|
use std::path::PathBuf;
|
2022-06-03 06:04:59 +00:00
|
|
|
use tracing_subscriber::filter::Directive;
|
2020-07-05 00:40:20 +00:00
|
|
|
|
2022-06-03 03:08:04 +00:00
|
|
|
#[derive(Parser)]
|
2020-07-05 00:40:20 +00:00
|
|
|
#[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,
|
2020-07-05 00:40:20 +00:00
|
|
|
}
|