Skip to content

Commit 54e3b66

Browse files
committed
feat: enable audio by default (use --no-audio to disable)
1 parent cb6f0a8 commit 54e3b66

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "batimg"
3-
version = "1.2.1"
3+
version = "1.3.0"
44
edition = "2018"
55

66
[dependencies]

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ fn main() {
155155
.long("debug")
156156
.help("Print debug stats")
157157
.takes_value(false))
158-
.arg(Arg::new("audio")
158+
.arg(Arg::new("no-audio")
159159
.short('a')
160-
.long("audio")
161-
.help("Play video audio")
160+
.long("no-audio")
161+
.help("Disable video audio")
162162
.takes_value(false))
163163
.arg(Arg::new("loop")
164164
.short('l')
@@ -186,7 +186,7 @@ fn main() {
186186

187187
// Flag variables
188188
let debug: bool = matches.is_present("debug");
189-
let play_audio: bool = matches.is_present("audio");
189+
let play_audio: bool = !matches.is_present("no-audio");
190190
let timesync: bool = matches.is_present("timesync");
191191
let resolution: bool = !matches.is_present("resolution");
192192
let mut loop_video: bool = matches.is_present("loop");

0 commit comments

Comments
 (0)