mirror of
https://github.com/openharmony/third_party_rust_clap.git
synced 2026-07-19 21:23:35 -04:00
12 lines
155 B
Rust
12 lines
155 B
Rust
use clap::Parser;
|
|
|
|
#[derive(Parser, Debug)]
|
|
struct Opt {
|
|
#[command(external_subcommand)]
|
|
field: String,
|
|
}
|
|
|
|
fn main() {
|
|
let _ = Opt::parse();
|
|
}
|