• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by John Dev


30 Nov, 2024

Updated at 13 Dec, 2024

Use Multiple values in clap by allowing multiple values

let command = Command::new("hey")
        .version("1.0")
        .author("Hariprasath")
        .about("Cli Used for generating using gemini")
        .subcommand(
            Command::new("tell")
                .about("Used to ask gemini")
                .arg(Arg::new("prompt").required(true)),
        )
        .get_matches();

1 post - 1 participant

Read full topic