From b51477decbb74b95b6b33420e26649f8a8d0e70f Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 24 Oct 2023 13:31:54 -0700 Subject: Add dry run option, to test processing without actually downloading anything --- src/wikiget/wikiget.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wikiget/wikiget.py') diff --git a/src/wikiget/wikiget.py b/src/wikiget/wikiget.py index cf877cf..693decb 100644 --- a/src/wikiget/wikiget.py +++ b/src/wikiget/wikiget.py @@ -113,6 +113,12 @@ def construct_parser() -> argparse.ArgumentParser: help="number of parallel downloads to attempt in batch mode", type=int, ) + parser.add_argument( + "-n", + "--dry-run", + action="store_true", + help="check the download or batch file without actually downloading anything", + ) return parser -- cgit v1.2.3