Skip to content

Commit 84cddf9

Browse files
committed
Fix incorrect --profile command
1 parent 20656ad commit 84cddf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cargo-insta/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub struct TestCommand {
153153
pub release: bool,
154154
/// Build artifacts with the specified profile
155155
#[structopt(long)]
156-
pub profile: String,
156+
pub profile: Option<String>,
157157
/// Activate all available features
158158
#[structopt(long)]
159159
pub all_features: bool,
@@ -870,7 +870,7 @@ fn prepare_test_runner<'snapshot_ref>(
870870
if cmd.release {
871871
proc.arg("--release");
872872
}
873-
if let Some(ref profile) = cmd.features {
873+
if let Some(ref profile) = cmd.profile {
874874
proc.arg("--profile");
875875
proc.arg(profile);
876876
}

0 commit comments

Comments
 (0)