Skip to content

Commit

Permalink
feat(args): add a short variant -d for specifying --date-order flag
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Nov 19, 2022
1 parent e73fd9f commit 5913e24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ git-cliff [FLAGS] [OPTIONS] [--] [RANGE]
-l, --latest Processes the commits starting from the latest tag
--current Processes the commits that belong to the current tag
-u, --unreleased Processes the commits that do not belong to a tag
--date-order Sorts the tags chronologically
-d, --date-order Sorts the tags chronologically
--context Prints changelog context as JSON
-h, --help Prints help information
-V, --version Prints version information
Expand Down
2 changes: 1 addition & 1 deletion git-cliff/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub struct Opt {
#[clap(short, long, help_heading = Some("FLAGS"))]
pub unreleased: bool,
/// Sorts the tags chronologically.
#[clap(long, help_heading = Some("FLAGS"))]
#[clap(short, long, help_heading = Some("FLAGS"))]
pub date_order: bool,
/// Prints changelog context as JSON.
#[clap(long, help_heading = Some("FLAGS"))]
Expand Down

0 comments on commit 5913e24

Please sign in to comment.