I posted this query after going thru man and searching thru the web for some time. It didn't make much sense
This is the part of my code ...
while getopts 'd:r:u:p:l' OPTION
case "$OPTION" in
?) Usage # calls an error message generating function
the problem that i am having is that if i give the pgm like this $xyz -d -r 126.96.36.199 -l, instead of giving an error saying that the argument for -d isn't provided it takes "-r" as the argument for "-d". what am i doing wrong here.
Thanks a lot,