I just got to know both functions. Have been searching internet to learn their usage. Found one thing which is very important to parse the command line option input, but not discussed.
Is such a case, if duplicated options are typed in, both functions can not do anything to handle it. I was wondering if there is any lib function to use for this.
If I have to handle it myself. The way in my mind is to collection short option into an array and find identical ones in the array.
Any better way to do it?