mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
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:
parent
20b0ddc4d1
commit
3cb34ef03d
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user