When I do something like:
./foo -uxw --bar something
Does the shell automatically parse these commands, or does each program have to do the parsing itself?
Each program parses its arguments. You'll probably want to look into getopt
for that so the answer becomes: each program usually relies on getopt
to parse arguments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With