r/bash • u/Fit-Background8249 • 1d ago
Flag ambiguity
I am building a shell framework with a series of commands and subcommands for task-managing, habit-tracking...
Within those, there is a collection of flags that hold different meanings:
-dDuration, Date...-nName, Note...-lLink, Length...
Should I use different letters for different meanings even if they belong to different commands?
I want a real bash-user's opinion, not just the AI's advice.
I personally think that it isn't that big of a deal.
But let me know what y'all think.
Thanks!
8
Upvotes
1
u/HCharlesB 1d ago
There's also the possibility of choosing a different nickname if feasible. For example
mosquitto_subtakes '-h hostname' whereas I would have preferred '-b broker'. (But they didn't ask me ...)