Remove deprecated -m/--markdown command

This commit is contained in:
Danilo Bargen 2022-10-01 23:54:37 +02:00
commit 2ebf86b265
2 changed files with 1 additions and 19 deletions

View file

@ -67,15 +67,6 @@ pub(crate) struct Args {
#[clap(short = 'r', long = "--raw", requires = "command_or_file")]
pub raw: bool,
/// Deprecated alias of `raw`
#[clap(
long = "markdown",
short = 'm',
requires = "command_or_file",
hide = true
)]
pub markdown: bool,
/// Suppress informational messages
#[clap(short = 'q', long = "quiet")]
pub quiet: bool,

View file

@ -240,7 +240,7 @@ fn main() {
init_log();
// Parse arguments
let mut args = Args::parse();
let args = Args::parse();
// Determine the usage of styles
#[cfg(target_os = "windows")]
@ -261,15 +261,6 @@ fn main() {
ColorOptions::Never => false,
};
// Handle renamed arguments
if args.markdown {
args.raw = true;
print_warning(
enable_styles,
"The -m / --markdown flag is deprecated, use -r / --raw instead",
);
}
// Look up config file, if none is found fall back to default config.
let config = match Config::load(enable_styles) {
Ok(config) => config,