]> git.nihav.org Git - nihav-encoder.git/commitdiff
add short aliases for some commands
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 12 Jul 2020 08:28:21 +0000 (10:28 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 12 Jul 2020 08:28:21 +0000 (10:28 +0200)
src/main.rs

index be7750d488f5b5665952781fb6339965585ee038..38de7771b02bdbb9bd4f4d62c47716e0aa15e7d6 100644 (file)
@@ -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" => {