diff --git a/pb b/pb
index b4d23a2..98fb03c 100755
--- a/pb
+++ b/pb
@@ -74,7 +74,7 @@ while true; do
       ;;
     -s)
       shift
-      ENDPOINT="$2"
+      ENDPOINT="$1"
       shift
       ;;
     -x)