-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed as not planned
Closed as not planned
Copy link
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
Currently if a cargo user wants to create a library project, they need to use cargo new --lib and cargo new --library throws an error with a nice error message:
error: unexpected argument '--library' found
tip: a similar argument exists: '--lib'
Usage: cargo new --lib <path>
For more information, try '--help'.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 that cargo new --library and cargo new --lib actually does the same thing.
This can be further expanded --bin and --binary.
Notes
No response
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.