Skip to content

Commit

Permalink
Provide short flags for commonly used options
Browse files Browse the repository at this point in the history
This commit addresses #3771 (comment)
  • Loading branch information
ysaito1001 committed Jul 22, 2024
1 parent 1ae8781 commit 83e67dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tools/ci-build/changelogger/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ mod tests {
"client",
"--applies-to",
"aws-sdk-rust",
"--author",
"--authors",
"external-contrib",
"--author",
"--authors",
"ysaito1001",
"--ref",
"--references",
"smithy-rs#1234",
"--ref",
"--references",
"aws-sdk-rust#5678",
"--new-feature",
"--message",
Expand Down
10 changes: 5 additions & 5 deletions tools/ci-build/changelogger/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ use std::path::PathBuf;
#[derive(Parser, Debug, Eq, PartialEq)]
pub struct NewArgs {
/// Target audience for the change (if not provided, user's editor will open for authoring one)
#[clap(long)]
#[clap(long, short = 't')]
pub applies_to: Option<Vec<Target>>,
/// List of git usernames for the authors of the change (if not provided, user's editor will open for authoring one)
#[clap(long = "author")]
#[clap(long, short)]
pub authors: Option<Vec<String>>,
/// List of relevant issues and PRs (if not provided, user's editor will open for authoring one)
#[clap(long = "ref")]
#[clap(long, short)]
pub references: Option<Vec<Reference>>,
/// Whether or not the change contains a breaking change (defaults to false)
#[clap(long, action)]
Expand All @@ -28,10 +28,10 @@ pub struct NewArgs {
#[clap(long, action)]
pub new_feature: bool,
/// Whether or not the change fixes a bug (defaults to false)
#[clap(long, action)]
#[clap(long, short, action)]
pub bug_fix: bool,
/// The changelog entry message (if not provided, user's editor will open for authoring one)
#[clap(long)]
#[clap(long, short)]
pub message: Option<String>,
/// Basename of a changelog markdown file (defaults to a random 6-digit basename)
#[clap(long)]
Expand Down

0 comments on commit 83e67dc

Please sign in to comment.