Skip to content

Commit 06c6428

Browse files
committed
Added ip paramater to client
1 parent e6ef67e commit 06c6428

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

client

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -e
3-
OPT=$(getopt -n "cf-dns" -o "h,v" -l "help,version,register:,movies,order:,history:,cancel-ticket:,recoverKey:,userkey:,locations,movieID:,movieName:,theaterID:,city:,country:" -- "$@")
3+
OPT=$(getopt -n "client" -o "h,v" -l "help,version,ip:,register:,movies,order:,history:,cancel-ticket:,recoverKey:,userkey:,locations,movieID:,movieName:,theaterID:,city:,country:" -- "$@")
44

55
eval set -- "$OPT"
66
#flags
@@ -78,6 +78,9 @@ function help(){
7878
./client -h : this synopsis
7979
./client -v : version with authors names
8080
81+
Change API's ip:
82+
./client --ip <IP> [OPTS]
83+
8184
Register to system:
8285
./client --register username:password
8386
@@ -191,6 +194,10 @@ while [ "$1" != "--" ]; do
191194
countryF=1
192195
shift
193196
;;
197+
--ip)
198+
server_address=http://"$2"
199+
shift
200+
;;
194201
*)
195202
echo Unknown parameter
196203
exit 1

0 commit comments

Comments
 (0)