Skip to main content

hashiverse_lib/client/
args.rs

1//! # Client command-line argument parsing
2//!
3//! A placeholder clap-derived [`Args`] struct used by the reference client entry points.
4//! Currently empty — all runtime knobs still live in [`crate::tools::config`] — but the
5//! skeleton is here so command-line flags can be added later without forcing every caller
6//! to take a new dependency on clap.
7
8use clap::Parser;
9
10#[derive(Parser, Debug, Clone)]
11#[command(version, about, long_about = None)]
12pub struct Args {
13}
14
15impl Args {
16    pub fn new() -> Self {
17        Args::parse()
18    }
19}
20
21impl Default for Args {
22    fn default() -> Self {
23        Args::parse_from(&[""])
24    }
25}