generate-integration-docs-screenshot: Rename the fixture option.

to `fixture-name` to match the name of the corresponding field in the
ScreenshotConfig dataclass.

This is in preparation to loading all the options into a config dict
in a single step in a later commit.
This commit is contained in:
Niloth P 2025-05-27 11:01:44 +05:30 committed by Tim Abbott
parent 20b0ddc4d1
commit 3cb34ef03d

View File

@ -271,7 +271,7 @@ batch_group.add_argument(
batch_group.add_argument("--integration", nargs="+", help="Names of specific integrations")
parser.add_argument(
"--fixture",
"--fixture-name",
help="Name of the fixture file to use. All other webhook options are ignored if the fixture is not specified.",
)
parser.add_argument("--image-name", help="Name for the screenshot image")
@ -322,7 +322,7 @@ elif options.skip_until:
for screenshot_config in screenshot_configs:
generate_screenshot_from_config(integration_name, screenshot_config)
elif options.fixture:
elif options.fixture_name:
if len(options.integration) != 1:
parser.error(
"Exactly one integration should be specified for --integration when --fixture is provided"