Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Hazarth95213yThere's a special place in hell for people who use "-version" instead of "--version"
-
-
similar to why elseif / else if / elif / wtf is spelled differently in different languages
-
@fraktalisman else if means there is no special keyword. Which language uses elseif?
-
@happygimp0 I guess PHP and VB at least?
https://docs.microsoft.com/en-us/...
https://w3schools.com/php/... -
@netikras apparently you can use elseif both with and without space in PHP, because of course you can.
And then, to add to @fraktalisman's list, some weirdos use elsif. -
@gcavalcante8808 Actually the IBM way - which is also why MS had to use \ as directory separator. IBM had tools that took CLI switches with /, and IBM didn't want to fix their shit.
-
@gcavalcante8808 And the reason why IBM already had their CLI switches was that MS-DOS didn't even have directories before 2.0. :-)
Interestingly, it's no accident that MS-DOS over time got some half-assed UNIX flavour. That's because MS was one of the largest UNIX companies with their Xenix and intended MS-DOS as "single user Xenix", eventually planning to make MS-DOS upward compatible with Xenix.
Yes, MS saw Unix as the future of PCs. In the second half of the 80s, MS was the largest Unix companies by numbers - more machines ran Xenix than all other Unixes combined. -
I asked a question about this on StackOverflow once and it got deleted:
https://stackoverflow.com/questions...
"Oh dear, we wouldn't want to help people try and understand this mess, let's just delete the question!" -
kiki352493yIs that an interview question? Okay, top to bottom:
3.6.0
3.6.0 LTS Oct 6 2021
the flag “-version” does not exist
3.6.0
cannot find command “version” -
hjk10156963y@netikras you can look an almost anything made in Go. The stdlib provides flag handling like that. Double dash is also always valid though.
-
@AmyShackles And don't forget:
<ESC> :qa
<ESC> :qa!
<ESC> :wqa
<ESC> :wqa!
For all other applications, ^D works on most places and is the fastest.
Related Rants
-v
-V
-version
--version
version
rant
version