From df7283ae03fe8ea28d89801f1ab9310560f33b5d Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Fri, 14 Nov 2025 12:15:52 -0800 Subject: [PATCH] fix: use ArgumentParser to validate build artifact names --- src/fuzzfetch/args.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/fuzzfetch/args.py b/src/fuzzfetch/args.py index 23bdd644..777801cf 100644 --- a/src/fuzzfetch/args.py +++ b/src/fuzzfetch/args.py @@ -49,8 +49,16 @@ def __init__(self) -> None: "--target", nargs="*", default=[], + choices=( + "common", + "firefox", + "gtest", + "js", + "mozharness", + "searchfox", + "thunderbird", + ), help="Specify the build artifacts to download. " - "Valid options: firefox js common gtest mozharness searchfox thunderbird " f"(default: {' '.join(FetcherArgs.DEFAULT_TARGETS)})", ) target_group.add_argument(