Skip to content

cargo b -Z help != cargo build -Z help  #9883

Closed
@gilescope

Description

@gilescope

b should be a shortcode for build and nothing different should happen but I'm seeing differences:

cargo build -Z help
**snip correct output**

but for b I get:

cargo b -Z help
error: unknown `-Z` flag specified: help

cargo b builds fine so I think we need to re-examine how we're implementing these shortcodes.

While I'm here it would be great if there was a special case put in to point people at the -Z help flag. I can never quite remember how to get to it. E.g.

cargo build -Z
error: The argument '-Z <FLAG>...' requires a value but none was supplied

USAGE:
    cargo build -Z <FLAG>...

For more information try --help

if we could add a special case like the following it would help a lot:

 (or for a list of available -Z flags use `-Z help`)

Metadata

Metadata

Assignees

Labels

A-cli-helpArea: built-in command-line helpC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions