mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Remove deprecated -m/--markdown command
This commit is contained in:
parent
efe1b57696
commit
2ebf86b265
2 changed files with 1 additions and 19 deletions
|
|
@ -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,
|
||||
|
|
|
|||
11
src/main.rs
11
src/main.rs
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue