Skip to content

Commit

Permalink
cli: add possible values to bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Oct 14, 2022
1 parent e44b70d commit 43b7ed9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/build_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ pub struct BuildOptions {
#[arg(short = 'f', long, conflicts_with = "interpreter")]
pub find_interpreter: bool,

/// Which kind of bindings to use. Possible values are pyo3, rust-cpython, cffi and bin
#[arg(short, long)]
/// Which kind of bindings to use.
#[arg(short, long, value_parser = ["pyo3", "pyo3-ffi", "rust-cpython", "cffi", "bin"])]
pub bindings: Option<String>,

/// The directory to store the built wheels in. Defaults to a new "wheels"
Expand Down
4 changes: 3 additions & 1 deletion tests/cmd/build.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Options:
Find interpreters from the host machine

-b, --bindings <BINDINGS>
Which kind of bindings to use. Possible values are pyo3, rust-cpython, cffi and bin
Which kind of bindings to use

[possible values: pyo3, pyo3-ffi, rust-cpython, cffi, bin]

-o, --out <OUT>
The directory to store the built wheels in. Defaults to a new "wheels" directory in the
Expand Down
4 changes: 3 additions & 1 deletion tests/cmd/publish.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ Options:
Find interpreters from the host machine

-b, --bindings <BINDINGS>
Which kind of bindings to use. Possible values are pyo3, rust-cpython, cffi and bin
Which kind of bindings to use

[possible values: pyo3, pyo3-ffi, rust-cpython, cffi, bin]

-o, --out <OUT>
The directory to store the built wheels in. Defaults to a new "wheels" directory in the
Expand Down

0 comments on commit 43b7ed9

Please sign in to comment.