We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38f2b7 commit 27511d1Copy full SHA for 27511d1
crates/lambda-rs-args/src/lib.rs
@@ -1071,7 +1071,10 @@ impl ParsedArgs {
1071
/// Returns a count value by name, if present and typed as integer.
1072
///
1073
/// # Arguments
1074
- /// - `name`: The declared argument name (for example, `"-v"`).
+ /// - `name`: The declared argument name (for example, `"--verbose"`).
1075
+ /// If you declared a long flag with an alias (for example, `"--verbose"`
1076
+ /// with alias `"-v"`), lookups must use `"--verbose"`. Passing `"-v"` is
1077
+ /// only correct when `"-v"` is the declared name.
1078
1079
/// # Returns
1080
/// Returns `Some(i64)` when the argument exists and is an integer, otherwise
0 commit comments