(parsing options): Simplify sed command to delete -'s.
This commit is contained in:
parent
d05c42e46d
commit
c0b2f23c46
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ while [ $# != 0 ]; do
|
|||
## If FOO is a boolean argument, --FOO is equivalent to
|
||||
## --FOO=yes. Otherwise, the value comes from the next
|
||||
## argument - see below.
|
||||
opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
|
||||
opt=`echo ${arg} | sed 's:^-*::'`
|
||||
val="yes"
|
||||
valomitted=yes
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue