Skip to content

Commit

Permalink
Merge pull request #994 from messense/subcommand-alias
Browse files Browse the repository at this point in the history
Add aliases for maturin `build` and `develop` subcommands
  • Loading branch information
messense committed Jun 29, 2022
2 parents f8e71ed + 8431429 commit 584e605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Add `--repository` option to `maturin upload` command in [#987](https://github.com/PyO3/maturin/pull/987)
* Only lookup bundled Python sysconfig when interpreters aren't specified as file path in [#988](https://github.com/PyO3/maturin/pull/988)
* Find CPython upper to 3.12 and PyPy upper to 3.10 in [#993](https://github.com/PyO3/maturin/pull/993)
* Add short alias `maturin b` for `maturin build` and `maturin dev` for `maturin develop` subcommands in [#994](https://github.com/PyO3/maturin/pull/994)

## [0.12.20] - 2022-06-15

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::str::FromStr;
/// Build and publish crates with pyo3, rust-cpython and cffi bindings as well
/// as rust binaries as python packages
enum Opt {
#[clap(name = "build")]
#[clap(name = "build", alias = "b")]
/// Build the crate into python packages
Build {
/// Build artifacts in release mode, with optimizations
Expand Down Expand Up @@ -67,7 +67,7 @@ enum Opt {
#[clap(long)]
target: Option<String>,
},
#[clap(name = "develop")]
#[clap(name = "develop", alias = "dev")]
/// Installs the crate as module in the current virtualenv
///
/// Note that this command doesn't create entrypoints
Expand Down

0 comments on commit 584e605

Please sign in to comment.