aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-27 10:30:49 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-27 10:30:49 -0600
commitb1cf1f9eb43fbe4976b4063f47a0a2c259f535a9 (patch)
tree085c429e8155662b512168209003ae49d972cd08 /src/main.rs
parent3ef3351e6c9d74aeafe8d185f27ce078f166f363 (diff)
downloadwebget-b1cf1f9eb43fbe4976b4063f47a0a2c259f535a9.tar.gz
webget-b1cf1f9eb43fbe4976b4063f47a0a2c259f535a9.zip
specify user agent
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>,
}