OSDN Git Service

[update] : Added --aururl
authorhayao <shun819.mail@gmail.com>
Sat, 19 Dec 2020 06:38:23 +0000 (15:38 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 19 Dec 2020 06:38:23 +0000 (15:38 +0900)
wfa

diff --git a/wfa b/wfa
index 928e260..5e4018b 100755 (executable)
--- a/wfa
+++ b/wfa
@@ -9,6 +9,7 @@ pacman_args=""
 operation="none"
 
 wfa_version="0.1"
+aururl="https://aur.archlinux.org/"
 
 # メッセージ出力の制御
 # https://github.com/FascodeNet/alterlinux/blob/dev/tools/msg.sh の変数名にアンダーバーを追加し関数化
@@ -466,7 +467,7 @@ operation_sync() {
 # Parse options
 ARGUMENT="${@}"
 _opt_short="QRShVdb:"
-_opt_long="query,remove,sync,help,version,debug,dbpath:"
+_opt_long="query,remove,sync,help,version,debug,dbpath:,aururl"
 
 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- ${ARGUMENT})
 [[ ${?} != 0 ]] && exit 1
@@ -502,6 +503,10 @@ while :; do
             add_pacman_args "--dbpath '${2}'"
             shift 2
             ;;
+        --aururl)
+            aururl="${2}"
+            shift 2
+            ;;
         -h | --help)
             usage
             shift 1