Skip to content

Commit

Permalink
No need to pass explicit parser for pathbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristramg committed Feb 29, 2024
1 parent 6232e1d commit 63c45f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod converter;

pub use converter::*;

6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ struct Opt {
name = "gtfs",
short = 'i',
long = "input",
help = "Path to the GTFS file (can be a directory or a zip file) or URL to an online GTFS file",
parse(from_os_str)
help = "Path to the GTFS file (can be a directory or a zip file) or URL to an online GTFS file"
)]
file: PathBuf,
#[clap(
name = "output",
short = 'o',
long = "output",
help = "Path to the output file. If not present, geojson file is outputed in stdout",
parse(from_os_str)
help = "Path to the output file. If not present, geojson file is outputed in stdout"
)]
output_file: Option<PathBuf>,
}
Expand Down

0 comments on commit 63c45f5

Please sign in to comment.