Skip to content

Commit

Permalink
feat(args): add -x short argument for --context
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 20, 2023
1 parent 10c3194 commit 327512a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git-cliff/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub struct Opt {
#[arg(long, help_heading = Some("FLAGS"))]
pub topo_order: bool,
/// Prints changelog context as JSON.
#[arg(long, help_heading = Some("FLAGS"))]
#[arg(short = 'x', long, help_heading = Some("FLAGS"))]
pub context: bool,
/// Strips the given parts from the changelog.
#[arg(short, long, value_name = "PART", value_enum)]
Expand Down
3 changes: 1 addition & 2 deletions website/docs/usage/args.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
sidebar_position: 1
---

# Command-line Arguments

```
Expand All @@ -20,7 +19,7 @@ git-cliff [FLAGS] [OPTIONS] [--] [RANGE]
--current Processes the commits that belong to the current tag
-u, --unreleased Processes the commits that do not belong to a tag
--topo-order Sorts the tags topologically
--context Prints changelog context as JSON
-x, --context Prints changelog context as JSON
```

## Options
Expand Down

0 comments on commit 327512a

Please sign in to comment.