Skip to content

Commit c23b057

Browse files
authored
Add deprecation warning for --delete-unreferenced-snapshots (#441)
1 parent 1f9ee0f commit c23b057

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cargo-insta/src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ fn test_run(mut cmd: TestCommand, color: &str) -> Result<(), Box<dyn Error>> {
597597

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

0 commit comments

Comments
 (0)