They meant that you’d get the same message no matter what unrecognized option you use. So it’s not like they added a specific check that if you type in -h they will give you the message, but instead you get the same message for any unrecognized option.
The thing in the OP only occurs if you type exit, so they specifically added that message to be shown when the interpreter clearly knows what you want, but you just didn’t say it exactly right.
Same energy as “Option
-h
not recognized; use--help
for the list of options”.Or more subtly, when the command uses BSD (nowadays Go) style single-dash args, so it wants
-help
and not--help
.I can actually forgive that one since it’s the fallback for any invalid argument.
Not always, way too often you just get a variation of “invalid option, use --help to get a list of options”
How about you show me by default like most apps?
They meant that you’d get the same message no matter what unrecognized option you use. So it’s not like they added a specific check that if you type in -h they will give you the message, but instead you get the same message for any unrecognized option.
The thing in the OP only occurs if you type exit, so they specifically added that message to be shown when the interpreter clearly knows what you want, but you just didn’t say it exactly right.
I mean, if I didn’t use a correct flag, my next command will probably include -h / --help