Skip to content

./x test --help --verbose is not very discoverable and may produce excess output (consider adding --list) #140477

Open
@lolbinarycat

Description

@lolbinarycat

Summary

This command lists all the different test targets that exist, however it is not very easy to find this behavior since it is not listed in the normal helptext.

Additionally, this command causes cargo to be run in verbose mode, which causes a lot of usually not interesting info to be printed.

Command used

./x test --help
./x test --help --verbose

Expected behaviour

Somewhere in the regular helptext this functionality is listed, or there is a --list flag that does a similar thing but doesn't run cargo in verbose mode (additionally, a --list flag could accept an argument and only print paths matching that argument).

Actual behaviour

Nothing printed by ./x test --help says how to get a list of test paths.

Bootstrap configuration (bootstrap.toml)

profile = "tools"  # Includes one of the default files in src/bootstrap/defaults
change-id = 138986

Operating system

Arch Linux (rolling)

HEAD

02257c202b33054a623bed712efe7f887b482a02

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions