LiorK
LiorK

Reputation: 1680

What are the basic concepts in command line arguments syntax

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

Upvotes: 0

Views: 127

Answers (1)

Vadim Kotov
Vadim Kotov

Reputation: 8284

You can find some discussion and interesting links in this post. Also refer to this and that document.

Upvotes: 1

Related Questions