Skip to content

Commit 03fa626

Browse files
authored
args: Add missing short/alias for --all, -r(elease) and -F(eatures) (#26)
1 parent 9ee82c9 commit 03fa626

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Args {
1515
#[cfg_attr(feature = "clap", clap(long, short))]
1616
pub package: Vec<String>,
1717
/// Build all packages in the workspace
18-
#[cfg_attr(feature = "clap", clap(long))]
18+
#[cfg_attr(feature = "clap", clap(long, visible_alias = "all"))]
1919
pub workspace: bool,
2020
/// Exclude packages from the build
2121
#[cfg_attr(feature = "clap", clap(long))]
@@ -38,13 +38,13 @@ pub struct Args {
3838
pub examples: bool,
3939

4040
/// Build artifacts in release mode, with optimizations
41-
#[cfg_attr(feature = "clap", clap(long))]
41+
#[cfg_attr(feature = "clap", clap(long, short))]
4242
pub release: bool,
4343
/// Build artifacts with the specified profile
4444
#[cfg_attr(feature = "clap", clap(long, conflicts_with = "release"))]
4545
pub profile: Option<Profile>,
4646
/// Space or comma separated list of features to activate
47-
#[cfg_attr(feature = "clap", clap(long))]
47+
#[cfg_attr(feature = "clap", clap(long, short = 'F'))]
4848
pub features: Vec<String>,
4949
/// Activate all available features
5050
#[cfg_attr(feature = "clap", clap(long))]

0 commit comments

Comments
 (0)