]> git.proxmox.com Git - cargo.git/commit - src/etc/man/cargo-rustc.1
Auto merge of #10576 - epage:feature, r=weihanglo
authorbors <bors@rust-lang.org>
Tue, 19 Apr 2022 00:44:10 +0000 (00:44 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 Apr 2022 00:44:10 +0000 (00:44 +0000)
commit46c7a2b39c2378d2e46b1b917a91130cc3b717b3
treeeeefb42fc44f97fed121ec8e739014d53a9cc03b
parent1d9ded94fd4c06346fc7c4ccd37a39ce0bc70af1
parentf728045729d02afea8bec51f9a8cdd6a6d4e3d8b
Auto merge of #10576 - epage:feature, r=weihanglo

feat: Support '-F' as an alias for '--features'

### What does this PR try to resolve?

Adds a short flag `-F` for `--features to all cargo commands to be consistent with the `-F` short flag being added in #10472.

### How should we test and review this PR?

The decision for this is a part of #10472 which is in FCP.

-  It looks like all commands except `cargo-add` are using the prelude to
  define `--features`, so this should hit them all.
- Man pages were updated
- I've updated completions to the best of my knowledge and am unsure of good testing strategies for them
- I'm assuming we don't add tests for every sort flag but rely on clap
  to have coverage to ensure it works.

Review the commits separately.  For the documentation change, the only manual change is in  `src/doc/man/includes/section-features.md`, the rest are code-generated.