0

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

2
  • this may be best asked at programmers.stackexchange.com Commented Nov 15, 2012 at 16:37
  • 1
    There are conventions, but no hard and fast rules. Commented Nov 15, 2012 at 16:38

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.