We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20656ad commit 84cddf9Copy full SHA for 84cddf9
cargo-insta/src/cli.rs
@@ -153,7 +153,7 @@ pub struct TestCommand {
153
pub release: bool,
154
/// Build artifacts with the specified profile
155
#[structopt(long)]
156
- pub profile: String,
+ pub profile: Option<String>,
157
/// Activate all available features
158
159
pub all_features: bool,
@@ -870,7 +870,7 @@ fn prepare_test_runner<'snapshot_ref>(
870
if cmd.release {
871
proc.arg("--release");
872
}
873
- if let Some(ref profile) = cmd.features {
+ if let Some(ref profile) = cmd.profile {
874
proc.arg("--profile");
875
proc.arg(profile);
876
0 commit comments