21 lines
529 B
Rust
21 lines
529 B
Rust
use clap::Parser;
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[command(author, version, about, long_about = None)]
|
|
pub struct MyArgs {
|
|
#[arg(name = "source")] // Define the argument without a short or long version
|
|
pub source: String,
|
|
|
|
#[arg(name = "compare")] // Define the argument without a short or long version
|
|
pub compare: String,
|
|
|
|
#[arg(short, long)]
|
|
pub column: usize,
|
|
|
|
#[arg(short, long)]
|
|
pub output: Option<String>,
|
|
|
|
#[arg(short, long, default_value_t = ';'.to_string())]
|
|
pub delimiter: String,
|
|
}
|