echo " Default: ${out_dir}"
echo " -w | --work <work_dir> Set the working directory"
echo " Default: ${work_dir}"
+ echo " -c | --cache <cache_dir> Set the cache directory"
+ echo " Default: ${cache_dir}"
echo
- echo " -d | --debug "
+ echo " -d | --debug Enable debug messages"
+ echo " -x | --bash-debug Enable bash debug mode(set -xv)"
echo " -h | --help This help message and exit"
echo
echo "You can switch between installed packages, files included in images, etc. by channel."
# 引数解析()
# 参考記事:https://0e0.pw/ci83 https://0e0.pw/VJlg
- _opt_short="w:l:o:ha:-:m:c:dx"
- _opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bash-debug"
-_opt_short="w:l:o:hba:-:m:c:d"
-_opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bootsplash"
++
++_opt_short="w:l:o:hba:-:m:c:dx"
++_opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bootsplash,bash-debug"
OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
if [[ ${?} != 0 ]]; then