Reserve -h
#71
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
-h
should always be an invalid command that prints basic usage information.I used to think this, but I see now I was wrong:
Many of those options, as Emma says below, are entirely unnecessary, and the others are at best contextual.
I’m not sure I’m a fan of this. I think we should aim for consistency but we can’t account for all tools, right?
I also think it would be okay to use
-h
for something if it made sense for the option.They're less prescription and more suggestion; certainly exceptions can and will exist, though I do think that
-h
should only print the program usage. There should be a known incorrect usage for the utilities so that someone can (faster than a manual lookup) get a refresher on what options can be used with a given utility."Reserve" was a strong word that does not quite match my meaning; "establishing conventions" was a better expression. When justified unconventionality is perfectly fine. The idea is to be consistent enough to give the user an intuition for how our tools are used and make them more confident in using utilities for the first time.
I don’t know that we should formalize this, but it would make sense to always be aware of the conventions we set. We could probably add this sentiment to CONTRIBUTING.
Since this was made, verbosity and debug level options (
-d
,-q
,-v
) have been dropped fromdj(1)
, and I believe that this functionality is not necessary in system utilities: they should simply output all available information to stderr (there will not be much in simple programs like this).-r
would be the reversing-functionality flag I would grok the best.-!
is weird and I have never seen it before.I've changed my mind.
-h
should never be used, and that's my only opinion on the matter - except, also, that programs should take advice from the design of other programs.Reserve certain options for certain functionsto Reserve `-h`Strong agree.