bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash getopts option


From: Shanks
Subject: Bash getopts option
Date: Mon, 26 Feb 2007 09:59:53 -0800 (PST)

I am trying to parse command line options using getopts. 
for parsing options that are words , for e.g -help, Bash is not allowing me
to do that.
while getopts c:d:fh:help options
do
    case $options in 
      help) echo" Help"
                ;;
done
The above code does not parse -help option. Any suggestions
-- 
View this message in context: 
http://www.nabble.com/Bash-getopts-option-tf3294413.html#a9163816
Sent from the Gnu - Bash mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]