ansible-test - Relocate internal CLI args (#85308)

This improves consistency by locating them with other global options.
pull/85317/head
Matt Clay 6 months ago committed by GitHub
parent 76ad0b636f
commit 4b0a5c5c63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -147,6 +147,16 @@ def add_global_options(
help='install command requirements',
)
global_parser.add_argument(
'--host-path',
help=argparse.SUPPRESS, # for internal use only by ansible-test
)
global_parser.add_argument(
'--metadata',
help=argparse.SUPPRESS, # for internal use only by ansible-test
)
add_global_remote(global_parser, controller_mode)
add_global_docker(global_parser, controller_mode)
@ -161,16 +171,6 @@ def add_composite_environment_options(
composite_parser = t.cast(argparse.ArgumentParser, parser.add_argument_group(
title='composite environment arguments (mutually exclusive with "environment arguments" above)'))
composite_parser.add_argument(
'--host-path',
help=argparse.SUPPRESS,
)
parser.add_argument(
'--metadata',
help=argparse.SUPPRESS,
)
action_types: list[t.Type[CompositeAction]] = []
def register_action_type(action_type: t.Type[CompositeAction]) -> t.Type[CompositeAction]:

Loading…
Cancel
Save