Comment by richardw

Comment by richardw 17 hours ago

6 replies

I’d maybe recommend inverting the command so it doesn’t delete by default but only when you add the relevant flag. Far better to add a little rigmarole than deal with a sad person who wiped their code.

jamil7 16 hours ago

I’m not the author of the tool, I was just chiming in. But yes, inverting it probably makes sense.

  • bmelton 16 hours ago

    Arguendo, having to type extra characters to enable the functionality that the tool says it will do in its very name seems backwards to me.

    • diggan 14 hours ago

      Besides, the common behavior is to do what it says on the tin by default, but offer flags to make cli's "simulate" their run with "--dry-run" or similar.

      I'm not sure I know of any utility that would have the opposite behavior than that.

      • cdirkx 14 hours ago

        The "install -y" pattern is kind of similar. Various tools have as a default that it gives a list of packages that would be installed, and then ask for confirmation.