Fix options and usage text

This commit is contained in:
Andrew Morgan 2019-07-15 16:04:26 +01:00
parent 2e5ab3f9d8
commit ccb0ce0e9d
1 changed files with 12 additions and 8 deletions

View File

@ -25,16 +25,20 @@ set -e
usage() { usage() {
echo "Usage: $0 -e <electron_version> -a <electron_abi> [-i] [-I]" echo "Usage: $0 -e <electron_version> -a <electron_abi> [-i] [-I]"
echo echo
echo "version: Electron version to use. Ex: 4.2.6" echo "version:"
echo echo " Electron version to use"
echo "electron_abi: ABI of the chosen electron version." echo " Ex: 4.2.6"
echo "Electron v4.2.6's ABI is 69" echo "electron_abi:"
echo echo " ABI of the chosen electron version"
echo "i: Build the iohook native node module for Push-to-Talk functionality" echo " Electron v4.2.6's ABI is 69"
echo "I: Same as -i, but just output the node module in the current directory" echo "i:"
echo " Build the iohook native node module for Push-to-Talk functionality"
echo " and install it"
echo "I:"
echo " Same as -i, but just output the node module in the current directory"
} }
while getopts "e:a:i:I" opt; do while getopts "e:a:iI" opt; do
case $opt in case $opt in
e) e)
electron_version=$OPTARG electron_version=$OPTARG