Skip to content

feature request: help and completion for TYPE_GROUP_SET #81

Open
@hemna

Description

@hemna

I have an script that has a list of string values that are acceptable as a command.

# ARG_POSITIONAL_SINGLE([command], [The command you want to run.], [setup_everything])
# ARG_TYPE_GROUP_SET([commands], [COMMAND], [command], [add_compute,build_images,deploy_airship,deploy_osh,clean_airship,clean_airship_not_images,clean_k8s,deploy_caasp,deploy_ccp_deployer,deploy_ses,enroll_caasp_workers,patch_upstream,setup_airship,setup_caasp_workers_for_openstack,setup_everything,setup_hosts,setup_openstack,teardown,update_airship_osh], [index])

It would be nice if the help output included the list of possible values for that specific command. Currently, this is all you get...

	<command>: The command you want to run. (default: 'setup_everything')

You can't find out what the possible values are unless you give the generated script a bogus value.

Also,
The bash completion doesn't support showing those list when you try tab for the command.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions