aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
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 a622afd..5de67ca 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -24,6 +24,10 @@ struct Args {
#[structopt(short = "P", long, default_value = ".")]
directory_prefix: PathBuf,
+ /// User-Agent header to include
+ #[structopt(short = "U", long, default_value = concat!("webget/", env!("CARGO_PKG_VERSION")))]
+ user_agent: String,
+
/// The URLs to download
urls: Vec<Uri>,
}