Remove deprecated -o/--os command

This commit is contained in:
Danilo Bargen 2022-10-01 23:53:28 +02:00
commit efe1b57696
2 changed files with 0 additions and 16 deletions

View file

@ -43,15 +43,6 @@ pub(crate) struct Args {
)]
pub platform: Option<PlatformType>,
/// Deprecated alias of `platform`
#[clap(
short = 'o',
long = "os",
possible_values = ["linux", "macos", "windows", "sunos", "osx"],
hide = true
)]
pub os: Option<PlatformType>,
/// Override the language
#[clap(short = 'L', long = "language")]
pub language: Option<String>,

View file

@ -269,13 +269,6 @@ fn main() {
"The -m / --markdown flag is deprecated, use -r / --raw instead",
);
}
if args.os.is_some() {
print_warning(
enable_styles,
"The -o / --os flag is deprecated, use -p / --platform instead",
);
}
args.platform = args.platform.or(args.os);
// Look up config file, if none is found fall back to default config.
let config = match Config::load(enable_styles) {