mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Remove deprecated -o/--os command
This commit is contained in:
parent
0c93a4cfe9
commit
efe1b57696
2 changed files with 0 additions and 16 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue