aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-27 10:11:20 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-27 10:11:20 -0600
commite0f4483ff90e85b841a3cd4748811fcf3738d495 (patch)
tree92ab4c2ef8e1274dc06f19ffa5558ee8eeeb86bc /src/main.rs
parentb5cb3fe9bafc4448b14335c9e0b9d90f1f7c78cb (diff)
downloadwebget-e0f4483ff90e85b841a3cd4748811fcf3738d495.tar.gz
webget-e0f4483ff90e85b841a3cd4748811fcf3738d495.zip
allow user to specify output directory
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 28de762..a622afd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,6 +20,10 @@ struct Args {
#[structopt(short = "O", long)]
output_document: Option<PathBuf>,
+ /// Set output directory
+ #[structopt(short = "P", long, default_value = ".")]
+ directory_prefix: PathBuf,
+
/// The URLs to download
urls: Vec<Uri>,
}