I'm not sure I know of any utility that would have the opposite behavior than that.
A "Hey, this is really going to delete files. If you're just playing around here, maybe try it with the --dry-run flag" seems sane and (so long as it's asked for) means less syntax to have to know up front.
An alternative is to have a check “Are you sure?” Just before delete, with a -fuckit_yolo flag to override the check.
I once had a desktop app and realised over a while that just making copious backups (50, IIRC) meant users were less likely to get angry when they had lots of extra safety, even from their own actions.
> An alternative is to have a check “Are you sure?” Just before delete, with a -fuckit_yolo flag to override the check.
Alternatively, is there any point you'd run this "ts-remove-unused" tool and you don't want it to delete anything? The main point of the tool is to delete things, so not sure what other use cases you have if you don't want it to delete something.
I will add a cautionary note to README to make it clear!
Isn't the name kind of a giveaway that it does more than just checking? "ts-remove-unused" is plastered all over the place, and you need to even type/paste the name into your terminal before you can use it.