From: Kostya Shishkov Date: Sun, 12 Jul 2020 08:28:21 +0000 (+0200) Subject: add short aliases for some commands X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=4b5c61e2cdb07069db7232920d9e67146e769de4;p=nihav-encoder.git add short aliases for some commands --- diff --git a/src/main.rs b/src/main.rs index be7750d..38de777 100644 --- a/src/main.rs +++ b/src/main.rs @@ -715,7 +715,7 @@ fn main() { } printed_info = true; }, - "--input" => { + "--input" | "-i" => { next_arg!(args, arg_idx); transcoder.input_name = args[arg_idx].clone(); }, @@ -723,7 +723,7 @@ fn main() { next_arg!(args, arg_idx); transcoder.input_fmt = Some(args[arg_idx].clone()); }, - "--output" => { + "--output" | "-o" => { next_arg!(args, arg_idx); transcoder.output_name = args[arg_idx].clone(); }, @@ -738,10 +738,10 @@ fn main() { return; } }, - "--no-video" => { + "--no-video" | "-vn" => { transcoder.no_video = true; }, - "--no-audio" => { + "--no-audio" | "-an" => { transcoder.no_audio = true; }, "--start" => {