I want to implement a script which gets some command line arguments and options.
There are so many different syntax types in command line arguments that I’m sometime confused.
Here are some examples:
./my_script -f -abc --file --name=lior -Dsomething=value -arg val
… and I guess there are even more…
Can anyone please make some order here?
(Best practices and recommendations are welcomed too)
Thanks,
Lior
You can find some discussion and interesting links in this post. Also refer to this and that document.