Consider aliasing cargo new --library
to cargo new --lib
rather than throwing an error for it
#12467
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
Currently if a cargo user wants to create a library project, they need to use
cargo new --lib
andcargo new --library
throws an error with a nice error message:But
--library
and--lib
means the same thing and I feel like there would not be an ambiguity if we also accept--library
.I would argue that it would feel more natural to some people.
Proposed Solution
If there are no strong reasons to not do that, I think we can also accept
--library
as a valid argument and basically make sure thatcargo new --library
andcargo new --lib
actually does the same thing.This can be further expanded
--bin
and--binary
.Notes
No response
The text was updated successfully, but these errors were encountered: