streambed_logged/args.rs
1//! Provides command line arguments that are typically used for all services using this module.
2
3use std::path::PathBuf;
4
5use clap::Parser;
6
7#[derive(Parser, Debug)]
8pub struct CommitLogArgs {
9 /// A namespace to use when communicating with the Commit Log
10 #[clap(env, long, default_value = "default")]
11 pub cl_ns: String,
12
13 /// The location of all topics in the Commit Log
14 #[clap(env, long, default_value = "/var/lib/logged")]
15 pub cl_root_path: PathBuf,
16}