Command-line option parsing with getopt(3)

preview_player
Показать описание
A detailed discussion of how to process command-line options/flags with getopt(3).

#cplusplus
#getopt
#commandline
Рекомендации по теме
Комментарии
Автор

This video is of very high quality (clear and detailed presentation) and covers a ton of useful things other than getopt (really like your discussion about handling optarg using istringstream)! I personally believe this video derserves a lot more views and likes.

ericyoung
Автор

Appreciate the good vid, taking an operating systems class and the professor just puts up slides without explanation, this made a lot of sense.

kevinzebb
Автор

probably the best programming video I ever watched (the first from this channel - definately not the last). Perfectly detailed, meaningfull comments about everything, great logical structure that makes you stay tuned! Without any uncessary fancy shit and also with a bit of spontaneous nice humor here and there. Thanks a lot! It helped in critical moment where I needed to understand that shit quickly!

nayamavridou
Автор

Honestly, one of the best videos I've seen on not just getopt but using C++ in general
😂

rafaelalejandrodiazcruz
Автор

This is an amazing, educational, fun and informative video. I am now a subscriber.

AhmadAlMutawa_abunoor
Автор

There is getopt_long(3) to get the long option names like "--help".

I wonder if I can stick option names together like in " tar -xvf"

Abrifq
Автор

Thank you for an amazing walkthrough...
Especially on the string to int conversion atoi()
I am trying to solve a similar problem. When i convert a string to float in an array or vector, I am losing the precision I need 7 digits precision & atoi stops at 5 digits.

when i use std::istringstream, its not getting properly stored into the array and when i try to open it in from the file, the data is not in proper order.
Any suggestion on this please? I just need to increase the precision to 7 digits

centis