Skip to content

Commit

Permalink
subpath defaults to nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcichra committed Dec 25, 2023
1 parent a5ec346 commit af598b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct Args {
user_agent: String,
#[clap(long, default_value = "repo")]
path: String,
#[clap(long, default_value = "dist")]
#[clap(long, default_value = "")]
subpath: String,
#[clap(long, default_value = "true")]
ignore_hidden_directories: bool,
Expand All @@ -30,7 +30,10 @@ async fn main() -> Result<()> {
let args = Args::parse();
let full_run_args = args.clone();
let reconcile_args: Args = args.clone();
let full_path = format!("{}/{}", &args.path, &args.subpath);
let mut full_path = args.path.clone();
if !args.subpath.is_empty() {
full_path = format!("{}/{}", &args.path, &args.subpath);
}

// handle control c
ctrlc::set_handler(move || {
Expand Down

0 comments on commit af598b7

Please sign in to comment.