From 0e5057b15d005b38f2e2687fdbf67ea35f1f4de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 2 Dec 2017 15:31:57 +0100 Subject: [PATCH] remove deprecated options --- gallery_dl/__init__.py | 11 ----------- gallery_dl/option.py | 8 -------- 2 files changed, 19 deletions(-) diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 2818bd38..73b4d4eb 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -150,17 +150,6 @@ def main(): except OSError as exc: log.warning("unsupported-URL file: %s", exc) - if args.depr_images is not None: - log.warning("--images is deprecated. " - "Use --range instead.") - if args.image_range is None: - args.image_range = args.depr_images - if args.depr_chapters is not None: - log.warning("--chapters is deprecated. " - "Use --chapter-range instead.") - if args.chapter_range is None: - args.chapter_range = args.depr_chapters - prepare_range(args.image_range, "image") prepare_range(args.chapter_range, "chapter") prepare_filter(args.image_filter, "image") diff --git a/gallery_dl/option.py b/gallery_dl/option.py index cff21ad6..5109f571 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -228,14 +228,6 @@ def build_parser(): help=("Same as '--filter' except for chapters " "and other delegated URLs"), ) - selection.add_argument( - "--images", dest="depr_images", - help=argparse.SUPPRESS, - ) - selection.add_argument( - "--chapters", dest="depr_chapters", - help=argparse.SUPPRESS, - ) parser.add_argument( "urls",