endpoint_validator/cli/args.rs
1use clap::Parser;
2
3/// Command-line arguments structure using `clap`
4#[derive(Parser, Debug)]
5#[command(name = "endpoint_validator")]
6#[command(about = "A tool to validate service endpoints")]
7pub struct Cli {
8 /// Path to the services.json file
9 #[arg(long)]
10 pub services_path: Option<String>,
11 #[arg(long)]
12 pub config_path: Option<String>,
13}
14
15/// Function to parse command-line arguments
16pub fn parse_args() -> Cli {
17 Cli::parse()
18}