2 ms·
I usually do the opposite and add a --really flag to my CLI utilities, so that they are read-only by default and extra effort is needed to screw things up.
by ElevenLathe 9mo ago
I usually do the opposite and add a --really flag to my CLI utilities, so that they are read-only by default and extra effort is needed to screw things up.
- weikju 9mo agoCame here to say the same
- eichin 9mo agoI've committed "--i-meant-that" (for a destroy-the-remote-machine command that normally (without the arg) gives you a message and 10s to hit ^C if you're not sure, for some particularly impatient coworkers. Never ended up being used inappropriately, which is luck (but we never quantified how much luck :-)
- tkclough 9mo agoI like the timer idea. I do something kinda similar by prompting the user to enter some short random code to continue. I guess the goal for both is to give the user a chance to get out of autopilot, and avoid up-arrowing and re-executing.