fixing option arg references

This commit is contained in:
James Tomasino 2018-08-16 12:49:14 -04:00
parent 903b7d1199
commit 4024fead8d
1 changed files with 1 additions and 6 deletions

7
pb
View File

@ -62,24 +62,19 @@ while true; do
case "$1" in
-h)
flag_help=1
shift
;;
-v)
flag_version=1
shift
;;
-f)
flag_file=1
shift
;;
-s)
shift
ENDPOINT="$1"
shift
;;
-x)
flag_shortlist=1
shift
;;
--)
shift
@ -89,13 +84,13 @@ while true; do
die "Internal error: $1" 3
;;
esac
shift
done
if [ -z "$data" ]; then
data="$*"
fi
if [ ${flag_version} -gt 0 ]; then
printf "%s\\n" "${version}"
die "" 0