aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/option.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-05-22 01:03:38 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-05-22 01:03:38 -0400
commit6a3ce8a0116b7439a93fa6070b792f4ffc499be2 (patch)
tree35efcd67c38f4d4212c68c59a4e62b6273134cff /gallery_dl/option.py
parent20f65494bdac2072232db84fbc12bec78a675da6 (diff)
parentbff1d7a3fc1f184002ea6c6f77de675885bda3eb (diff)
Update upstream source from tag 'upstream/1.25.4'
Update to upstream version '1.25.4' with Debian dir c3cf6e971855b5ed8569feef8efa371f1ca81f8c
Diffstat (limited to 'gallery_dl/option.py')
-rw-r--r--gallery_dl/option.py36
1 files changed, 22 insertions, 14 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py
index aad307f..08e6e70 100644
--- a/gallery_dl/option.py
+++ b/gallery_dl/option.py
@@ -148,20 +148,6 @@ def build_parser():
help="Delete cached login sessions, cookies, etc. for MODULE "
"(ALL to delete everything)",
)
- general.add_argument(
- "--cookies",
- dest="cookies", metavar="FILE", action=ConfigAction,
- help="File to load additional cookies from",
- )
- general.add_argument(
- "--cookies-from-browser",
- dest="cookies_from_browser",
- metavar="BROWSER[+KEYRING][:PROFILE][::CONTAINER]",
- help=("Name of the browser to load cookies from, "
- "with optional keyring name prefixed with '+', "
- "profile prefixed with ':', and "
- "container prefixed with '::' ('none' for no container)"),
- )
output = parser.add_argument_group("Output Options")
output.add_argument(
@@ -374,6 +360,28 @@ def build_parser():
help="Enable .netrc authentication data",
)
+ cookies = parser.add_argument_group("Cookie Options")
+ cookies.add_argument(
+ "-C", "--cookies",
+ dest="cookies", metavar="FILE", action=ConfigAction,
+ help="File to load additional cookies from",
+ )
+ cookies.add_argument(
+ "--cookies-export",
+ dest="cookies-update", metavar="FILE", action=ConfigAction,
+ help="Export session cookies to FILE",
+ )
+ cookies.add_argument(
+ "--cookies-from-browser",
+ dest="cookies_from_browser",
+ metavar="BROWSER[/DOMAIN][+KEYRING][:PROFILE][::CONTAINER]",
+ help=("Name of the browser to load cookies from, with optional "
+ "domain prefixed with '/', "
+ "keyring name prefixed with '+', "
+ "profile prefixed with ':', and "
+ "container prefixed with '::' ('none' for no container)"),
+ )
+
selection = parser.add_argument_group("Selection Options")
selection.add_argument(
"--download-archive",