from scratch now! handling positional arguments (-- command to run) is up next: ```rust use clap::Pa

from scratch now! handling positional arguments (-- command to run) is up next:
use clap::Parser;

#[derive(Parser, Debug)]
#[command(author, version, about)]
struct Cli {
    #[arg(long)]
    config: bool
}

fn main() {
    let args = Cli::parse();

    if args.config == true {
        todo!("Need to implement CLI/TUI setup.");
    }

    println!("{:?}", args);
}
Was this page helpful?