this post was submitted on 03 Jun 2025
487 points (99.0% liked)

Programmer Humor

23806 readers
2778 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] SomethingBurger@jlai.lu 16 points 2 days ago (5 children)

Same energy as "Option -h not recognized; use --help for the list of options".

[–] ptz@dubvee.org 17 points 2 days ago (4 children)

I can actually forgive that one since it's the fallback for any invalid argument.

[–] rikudou@lemmings.world 3 points 1 day ago (3 children)

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?

[–] squaresinger@lemmy.world 3 points 1 day ago (1 children)

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.

[–] rikudou@lemmings.world 1 points 1 day ago (1 children)

I mean, if I didn't use a correct flag, my next command will probably include -h / --help

[–] squaresinger@lemmy.world 1 points 1 day ago

You aren't wrong, it wouldn't be bad for it to just print the help in that case, at least when running interactive.

For automation, printing the full help of a more complex command would completely trash logs.

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)