Watson icon indicating copy to clipboard operation
Watson copied to clipboard

Confirm new projects and tags by default

Open prat0088 opened this issue 4 years ago • 3 comments

I think friendly command-line software would confirm if you really want to create a project or tag by default. It's so easy to make a typo.

What if you created a project or tag by mistake? It doesn't even see a command to delete projects or tags.

It was mentioned that users could add the --confirm-new-project to the config, but again, that isn't friendly. If you think of most users coming in and jumping right into the software, how many would even be aware there is such a config?

Also, think of the frequency of adding new projects vs. logging time to an existing project. I think it would be close to 1:20, 1:100 or greater. My point being, the one time you really do want to create a new tag, you can hit Y at the confirmation screen or pass --no-confirm-new-project.

By default I think software should protect users from taking actions that are difficult to undo and rarely intended.

prat0088 avatar Nov 08 '19 22:11 prat0088

We heard you loud and clear! Do you have time to propose related changes?

Note that if you've made a typo you can use the rename command.

jmaupetit avatar Nov 12 '19 09:11 jmaupetit

I can’t promise anything but if I do get the time I’ll work on a PR.

How should we do this? My opinion is that we should remove the existing options and replace them with —no versions. It might break a few people’s setups but it will benefit more than it breaks. It also keeps the usage clean having only two —no flags. Thinking of it, the existing flags would become noops, making them pointless to use.

prat0088 avatar Nov 12 '19 13:11 prat0088

Let's do this!

jmaupetit avatar Nov 12 '19 13:11 jmaupetit