mirror of
https://github.com/clap-rs/clap
synced 2024-09-21 14:52:00 +00:00
parent
35db529b36
commit
c27b2e299c
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ use clap::{App, Arg};
|
|||
|
||||
fn main() {
|
||||
// You can define a function (or a closure) to use as a validator to argument values. The
|
||||
// function must accept a String and return Result<(), String> where Err(String) is the message
|
||||
// displayed to the user.
|
||||
// function must accept a `&str` and return `Result<(), String>` where `Err(String)` is the
|
||||
// message displayed to the user.
|
||||
|
||||
let matches = App::new("myapp")
|
||||
// Application logic goes here...
|
||||
|
|
Loading…
Reference in a new issue