>>59923102
Definitely not the last.
>>59923102
First one is an abbreviation of the second. Third is trash.
GNU style is the only one that makes sense.
--afunctionality
--bfunctionality
--cfunctionality
or
-a
-b
-c
with the possibility to do
-abc
GUI
>>59923277
I wish more software did this rather than some half ass abomination.
>>59923102
-arg
Please and thank you, short, sweet, and simple.
>>59923277
Master race
>arg
>white
>>59923277
/thread
>>59923277
This
>>59923277
this. -a or --arg
>>59923277
This tbqh.
>>59923277
This, 100%
>>59923277
Is there any reason why we have both - and --? It seems - would be simpler and shorter.
>>59923918
Do you mean --thread ??? ^^
- for single-letter bool flags
-- for arguments which should be a short word followed by a value
>>59924285
legibility
say you want to write a shell script using tools you almost never use.
It's easier to read said script few years in the future without having to refer to the manpage
>>59923102
OnlyARG=VALUE ./a.out
is patrician
>>59924308
I'll admit, I both keked, and cursed you for thinking of that when I didn't
This is the best.
>>59923102
I hate --arg and I don't understand /arg
-arg is best
>>59924387
how do you use it in an automated script?
>>59924958
If your operating system isn't stuck in the previous century, then there are tools like Visual Studio Coded UI.
>yfw freetards haven't progressed past the text line interface because they think GUIs can't be automated
>>59923680
obviously
>>59924958
duh... you obviously make the script select the window named "app", type whatever you want as the argument and then presses enter
>>59924285
Program has arguments o, t, u and out.
Is -out o, u and t or out?
>>59923277
Right, but GNU style seems to include weird conventions for options with arguments.
-Wall
Is that one option -Wall that just uses a single hyphen? Is it four options -W -a -l -l? No, it's one option -W with the argument all. But there's no way to tell.
The sane way would be to put a space, or maybe an equals for long options. -W all or --warning=all.
I think getopt_long() is pretty flexible, but it does seem like there's an ambiguous case. I guess it must have some way to tell the difference between -W all and -W -a -l -l.