1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Provides command line arguments that are typically used for all services using this module.

use std::path::PathBuf;

use clap::Parser;

#[derive(Parser, Debug)]
pub struct StateStorageArgs {
    /// A file system path to where state may be stored
    #[clap(env, long, default_value = "/var/run")]
    pub state_storage_path: PathBuf,

    /// The interval between connecting to the commit-log-server and storing our state.
    #[clap(env, long, default_value = "1m")]
    pub state_store_interval: humantime::Duration,
}