Skip to content

Commit 0c836af

Browse files
committed
Add -r option as a short alias for --release
1 parent c4c8fa7 commit 0c836af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
* Stop testing Python 3.6 on CI since it's already EOL in [#840](https://github.com/PyO3/maturin/pull/840)
1212
* Update workspace members for sdist local dependencies in [#844](https://github.com/PyO3/maturin/pull/844)
1313
* Migrate docker image to github container registry in [#845](https://github.com/PyO3/maturin/pull/845)
14+
* Add `-r` option as a short alias for `--release` in [#854](https://github.com/PyO3/maturin/pull/854)
1415

1516
## [0.12.10] - 2022-03-09
1617

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum Opt {
3030
#[clap(flatten)]
3131
build: BuildOptions,
3232
/// Pass --release to cargo
33-
#[clap(long)]
33+
#[clap(short = 'r', long)]
3434
release: bool,
3535
/// Strip the library for minimum file size
3636
#[clap(long)]
@@ -77,7 +77,7 @@ enum Opt {
7777
/// The path to the Cargo.toml
7878
manifest_path: PathBuf,
7979
/// Pass --release to cargo
80-
#[clap(long)]
80+
#[clap(short = 'r', long)]
8181
release: bool,
8282
/// Strip the library for minimum file size
8383
#[clap(long)]

0 commit comments

Comments
 (0)