You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
234 B
17 lines
234 B
2 years ago
|
use clap::Parser;
|
||
|
|
||
|
#[derive(Parser)]
|
||
|
struct Params {
|
||
|
/// String opcional
|
||
|
#[clap(long)]
|
||
|
opt: Option<String>,
|
||
|
|
||
|
/// String obrigatória
|
||
|
#[clap(long)]
|
||
|
obr: String,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let _args = Params::parse();
|
||
|
}
|