Skip to content

Fix typos in command_prelude.rs #9552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub trait AppExt: Sized {

fn arg_package(self, package: &'static str) -> Self {
self._arg(
optinal_opt("package", package)
optional_opt("package", package)
.short("p")
.value_name("SPEC"),
)
Expand Down Expand Up @@ -225,7 +225,7 @@ pub trait AppExt: Sized {
fn arg_future_incompat_report(self) -> Self {
self._arg(opt(
"future-incompat-report",
"Ouputs a future incompatibility report at the end of the build (unstable)",
"Outputs a future incompatibility report at the end of the build (unstable)",
))
}
}
Expand All @@ -240,7 +240,7 @@ pub fn opt(name: &'static str, help: &'static str) -> Arg<'static, 'static> {
Arg::with_name(name).long(name).help(help)
}

pub fn optinal_opt(name: &'static str, help: &'static str) -> Arg<'static, 'static> {
pub fn optional_opt(name: &'static str, help: &'static str) -> Arg<'static, 'static> {
opt(name, help).min_values(0)
}

Expand Down