We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e2aef2 commit e211992Copy full SHA for e211992
1 file changed
tools/wizard.sh
@@ -71,8 +71,20 @@ getclm() {
71
echo "$(cat -)" | cut -d " " -f "${1}"
72
}
73
74
+# 使い方
75
+_help() {
76
+ echo "usage ${0} [options]"
77
+ echo
78
+ echo " General options:"
79
+ echo " -a Specify the architecture"
80
+ echo " -e English"
81
+ echo " -j Japanese"
82
+ echo " -n Enable simulation mode"
83
+ echo " -x Enable bash debug"
84
+ echo " -h This help message"
85
+}
86
-while getopts 'a:xnje' arg; do
87
+while getopts 'a:xnjeh' arg; do
88
case "${arg}" in
89
n)
90
nobuild=true
@@ -93,9 +105,17 @@ while getopts 'a:xnje' arg; do
93
105
echo "日本語が設定されました"
94
106
skip_set_lang=true
95
107
;;
108
+ h)
109
+ _help
110
+ exit 0
111
+ ;;
96
112
a)
97
113
build_arch="${OPTARG}"
98
114
115
+ *)
116
117
+ exit 1
118
99
119
esac
100
120
done
101
121
0 commit comments