use crate::CargoResult;
use anyhow::bail;
use cargo_util::paths;
-use clap::{self, SubCommand};
use std::ffi::{OsStr, OsString};
use std::path::PathBuf;
}
pub fn subcommand(name: &'static str) -> App {
- SubCommand::with_name(name)
- .setting(AppSettings::DeriveDisplayOrder | AppSettings::DontCollapseArgsInUsage)
+ App::new(name).setting(AppSettings::DeriveDisplayOrder | AppSettings::DontCollapseArgsInUsage)
}
/// Determines whether or not to gate `--profile` as unstable when resolving it.