projects
/
nihav-encoder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b0c5154
)
add short aliases for some commands
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 12 Jul 2020 08:28:21 +0000
(10:28 +0200)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 12 Jul 2020 08:28:21 +0000
(10:28 +0200)
src/main.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/main.rs
b/src/main.rs
index be7750d488f5b5665952781fb6339965585ee038..38de7771b02bdbb9bd4f4d62c47716e0aa15e7d6 100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-715,7
+715,7
@@
fn main() {
}
printed_info = true;
},
}
printed_info = true;
},
- "--input" => {
+ "--input"
| "-i"
=> {
next_arg!(args, arg_idx);
transcoder.input_name = args[arg_idx].clone();
},
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());
},
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();
},
next_arg!(args, arg_idx);
transcoder.output_name = args[arg_idx].clone();
},
@@
-738,10
+738,10
@@
fn main() {
return;
}
},
return;
}
},
- "--no-video" => {
+ "--no-video"
| "-vn"
=> {
transcoder.no_video = true;
},
transcoder.no_video = true;
},
- "--no-audio" => {
+ "--no-audio"
| "-an"
=> {
transcoder.no_audio = true;
},
"--start" => {
transcoder.no_audio = true;
},
"--start" => {