Skip to content

Commit

Permalink
add default values for input and output dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Samet committed Jan 17, 2025
1 parent 3f92982 commit 4ad1bce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ pub fn get_args() -> Result<Config, Box<dyn Error>> {
.help("working directory")
.required(true)
.min_values(1)
.max_values(1))
.max_values(1)
.default_value("/mnt/text-splitter-input"))
.arg(Arg::with_name("output-dir")
.short("o")
.long("output-dir")
.help("output directory")
.required(true)
.min_values(1)
.max_values(1))
.max_values(1)
.default_value("/mnt/text-splitter-output"))
.arg(Arg::with_name("minchar")
.long("minchar")
.help("minimum chars in chunk")
Expand Down

0 comments on commit 4ad1bce

Please sign in to comment.