diff --git a/src/develop.rs b/src/develop.rs index f1cec46e5..1a3a58302 100644 --- a/src/develop.rs +++ b/src/develop.rs @@ -198,7 +198,7 @@ pub struct DevelopOptions { )] pub bindings: Option, /// Pass --release to cargo - #[arg(short = 'r', long, help_heading = heading::COMPILATION_OPTIONS,)] + #[arg(short = 'r', long, help_heading = heading::COMPILATION_OPTIONS, conflicts_with = "profile")] pub release: bool, /// Strip the library for minimum file size #[arg(long)] diff --git a/src/main.rs b/src/main.rs index da594cdf9..40946d1e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,7 @@ enum Command { /// Build the crate into python packages Build { /// Build artifacts in release mode, with optimizations - #[arg(short = 'r', long, help_heading = heading::COMPILATION_OPTIONS)] + #[arg(short = 'r', long, help_heading = heading::COMPILATION_OPTIONS, conflicts_with = "profile")] release: bool, /// Strip the library for minimum file size #[arg(long)] @@ -78,7 +78,7 @@ enum Command { /// Build and publish the crate as python packages to pypi Publish { /// Do not pass --release to cargo - #[arg(long)] + #[arg(long, conflicts_with = "profile")] debug: bool, /// Do not strip the library for minimum file size #[arg(long = "no-strip")]