mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
docs(env): Fix bool example
This commit is contained in:
parent
0039ef91fa
commit
4b499ac024
1 changed files with 1 additions and 1 deletions
|
@ -2153,7 +2153,7 @@ impl<'help> Arg<'help> {
|
|||
/// "prog"
|
||||
/// ]);
|
||||
///
|
||||
/// assert_eq!(m.get_one::<String>("true_flag"), None);
|
||||
/// assert!(m.is_present("true_flag"));
|
||||
/// assert!(!m.is_present("false_flag"));
|
||||
/// assert!(!m.is_present("absent_flag"));
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Reference in a new issue