Skip to content

Make cargo --list combine commands and their aliases #12093

Closed
@ToBinio

Description

@ToBinio

Problem

Currently cargo --list splits the command itself and its aliase in seperate lines

b                    alias: build
bench                Execute all benchmarks of a local package
build                Compile a local package and all of its dependencies
build-man            alias: run --package xtask-build-man --
c                    alias: check

Proposed Solution

i would say this should be changed to a simular / the same system as clap has.
combining the command and its aliase

build, b    Compile the current package
check, c    Analyze the current package and report errors, but don't build object files
clean       Remove the target directory
doc, d      Build this package's and its dependencies' documentation

this behavior can already be seen in cargo --help

Notes

No response

Metadata

Metadata

Assignees

Labels

A-aliasesArea: command aliasesA-cli-helpArea: built-in command-line helpC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-mediumExperience: Medium

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions