dd86k / ddgst

#️⃣ dd's hashing utility with a twist
Creative Commons Zero v1.0 Universal
10 stars 0 forks source link

Improve CLI actions #11

Closed dd86k closed 2 years ago

dd86k commented 2 years ago

I've grown old of ddh md5 file. There's nothing wrong with that, just like git, md5 would indicate an action, but md5 isn't an action, ddh is the utility performing the hashing action. Which may even confuse me at times.

Another factor other than confusion is flexibility. Currently, this limits only one selected hash per invocation (though optional) and forces the selected hash to be at the start of the command-line, making invocations like ddh file md5 further confusing.

That's why doing the obvious syntax as ddh --md5 file seem like a more interesting (for 2.0?) to me, though losing the existing syntax may trouble some (or me, who knows).

Pros:

Cons: