Skip to content

Commit 27bcc50

Browse files
committed
handle dasgoclient-style syntax and treat = signs correct
1 parent 41e1288 commit 27bcc50

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Utilities/General/ibeos/das_client

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ HELP=
2323
for ((i=1; i<=$#; i++)); do
2424
next=$((i+1))
2525
case ${!i} in
26-
--query=* ) QUERY=$(echo ${!i} | sed 's|.*=||') ;;
27-
--query ) QUERY=${!next} ;;
28-
--format=* ) FORMAT=$(echo ${!i} | sed 's|.*=||') ;;
29-
--format ) FORMAT=${!next} ;;
30-
-h|--help ) HELP=YES ;;
26+
--query=* | -query=* ) QUERY="${!i#*=}" ;;
27+
--query | -query ) QUERY=${!next} ;;
28+
--format=* | -format=* ) FORMAT="${!i#*=}" ;;
29+
--format | -format ) FORMAT=${!next} ;;
30+
-h | --help | -help ) HELP=YES ;;
3131
esac
3232
done
3333

0 commit comments

Comments
 (0)