2022-04-02 23:49:46 +00:00
|
|
|
use clap::ValueHint;
|
|
|
|
|
2022-04-02 19:43:21 +00:00
|
|
|
#[derive(clap::Parser)]
|
|
|
|
#[clap(author, version)]
|
|
|
|
/// Pings configured hosts in a configurable intervals and exposes metrics for prometheus.
|
|
|
|
pub struct Cli {
|
|
|
|
/// Set config file
|
2022-04-02 23:49:46 +00:00
|
|
|
#[clap(value_hint = ValueHint::FilePath)]
|
|
|
|
pub config: std::path::PathBuf,
|
2022-04-02 19:43:21 +00:00
|
|
|
#[clap(short, long, parse(from_occurrences))]
|
|
|
|
/// Be verbose (you can add this up to 4 times for more logs).
|
|
|
|
/// By default, only errors are logged, so no output is a good thing.
|
|
|
|
pub verbose: usize,
|
|
|
|
}
|