From 79a9fc6e453700e6507095f6a81dac67ce67a49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 2 Nov 2022 21:59:47 +0100 Subject: [PATCH] add '--user-agent' command-line option --- gallery_dl/option.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gallery_dl/option.py b/gallery_dl/option.py index 37247a7e..4d5e463a 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -124,6 +124,11 @@ def build_parser(): dest="source-address", metavar="IP", action=ConfigAction, help="Client-side IP address to bind to", ) + general.add_argument( + "--user-agent", + dest="user-agent", metavar="UA", action=ConfigAction, + help="User-Agent request header", + ) general.add_argument( "--clear-cache", dest="clear_cache", metavar="MODULE",