Skip to content

Commit 48468ad

Browse files
committed
Allow multiple file processing
1 parent 9204dd8 commit 48468ad

2 files changed

Lines changed: 2 additions & 2 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 = "json2toml"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
authors = ["AtomXY <alexvd@inbox.ru>"]
55
edition = "2018"
66

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn parse_file(file: &str) -> std::result::Result<(), String> {
8787

8888
fn parse_list(files: Vec<String>) -> std::result::Result<(), String> {
8989
// disable multiple file processing
90-
if files.len() < 1 || files.len() > 1 {
90+
if files.len() < 1 {
9191
println!("Usage: json2toml file1");
9292
return Err("You have to specify only one file to convert".to_string());
9393
}

0 commit comments

Comments
 (0)