Skip to content

Commit 9526266

Browse files
committed
fix: wrong parsing of input files
1 parent a25615a commit 9526266

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ffzap"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
description = "⚡ A multithreaded CLI for digital media processing using ffmpeg. If ffmpeg can do it, ffzap can do it - as many files in parallel as your CPU can handle."
66
license-file = "license.md"

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct CmdArgs {
2121
ffmpeg_options: String,
2222

2323
/// the files you want to process.
24-
#[arg(short, long, num_args = 1.., value_delimiter = ' ')]
24+
#[arg(short, long, num_args = 1..,)]
2525
input_directory: Vec<String>,
2626

2727
/// if ffmpeg should overwrite files if they already exist. Default is false
@@ -47,6 +47,8 @@ struct CmdArgs {
4747
fn main() {
4848
let cmd_args = CmdArgs::parse();
4949

50+
println!("{:?}", cmd_args.input_directory);
51+
5052
let progress = Arc::new(Progress::new(cmd_args.input_directory.len()));
5153
progress.start_stick(500);
5254

0 commit comments

Comments
 (0)