mirror of
https://github.com/clap-rs/clap
synced 2025-01-05 17:28:42 +00:00
Fix yaml docs
This commit is contained in:
parent
56d182d98b
commit
59c3233a45
1 changed files with 4 additions and 4 deletions
|
@ -350,7 +350,7 @@ use clap::App;
|
|||
fn main() {
|
||||
// The YAML file is found relative to the current file, similar to how modules are found
|
||||
let yaml = load_yaml!("cli.yml");
|
||||
let matches = App::from_yaml(yaml).get_matches();
|
||||
let matches = App::from(yaml).get_matches();
|
||||
|
||||
// Same as previous examples...
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue