From ccb0ce0e9df03799c19a6da24c857167b8c0f5d1 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 15 Jul 2019 16:04:26 +0100 Subject: [PATCH] Fix options and usage text --- scripts/build-native-modules.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/build-native-modules.sh b/scripts/build-native-modules.sh index 099874d5..23230717 100755 --- a/scripts/build-native-modules.sh +++ b/scripts/build-native-modules.sh @@ -25,16 +25,20 @@ set -e usage() { echo "Usage: $0 -e -a [-i] [-I]" echo - echo "version: Electron version to use. Ex: 4.2.6" - echo - echo "electron_abi: ABI of the chosen electron version." - echo "Electron v4.2.6's ABI is 69" - echo - echo "i: Build the iohook native node module for Push-to-Talk functionality" - echo "I: Same as -i, but just output the node module in the current directory" + echo "version:" + echo " Electron version to use" + echo " Ex: 4.2.6" + echo "electron_abi:" + echo " ABI of the chosen electron version" + echo " Electron v4.2.6's ABI is 69" + 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 e) electron_version=$OPTARG