##### SUMMARY
```
(ansible_base) [vagrant@centos8 ~]$ ansible-test --version
ERROR: The current working directory must be at or below:

 - an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/

Current working directory: /home/vagrant
```

##### ISSUE TYPE
- Feature Idea

##### COMPONENT NAME
ansible-test

else:
            target_option = '--target'
            target_help = 'configuration for the target(s)'
        target_actions = {
            TargetMode.POSIX_INTEGRATION: PosixTargetAction,
            TargetMode.WINDOWS_INTEGRATION: WindowsTargetAction,
            TargetMode.NETWORK_INTEGRATION: NetworkTargetAction,
            TargetMode.SANITY: SanityPythonTargetAction,
            TargetMode.UNITS: UnitsPythonTargetAction,
        }
        target_action = target_actions[target_mode]
        composite_parser.add_argument(
            target_option,
            metavar='OPT',
            action=register_action_type(target_action),
            help=target_help,
        ).completer = completer.completer
    return action_types
def add_legacy_environment_options(
        parser,  
        controller_mode,  
        target_mode,  
):
    """Add legacy options for controlling the test environment."""
    
    environment = parser.add_argument_group(
        title='environment arguments (mutually exclusive with "composite environment arguments" below)')  
    add_environments_python(environment, target_mode)
    add_environments_host(environment, controller_mode, target_mode)
def add_environments_python(