Skip to content

Commit

Permalink
Add deprecation warning for --delete-unreferenced-snapshots (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored Feb 19, 2024
1 parent 1f9ee0f commit c23b057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cargo-insta/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ fn test_run(mut cmd: TestCommand, color: &str) -> Result<(), Box<dyn Error>> {

// Legacy command
if cmd.delete_unreferenced_snapshots {
println!("Warning: `--delete-unreferenced-snapshots` is deprecated. Use `--unreferenced=delete` instead.");
cmd.unreferenced = "delete".into();
}

Expand Down

0 comments on commit c23b057

Please sign in to comment.