1
0
mirror of https://github.com/fauxpilot/fauxpilot.git synced 2025-03-12 04:36:10 -07:00

Small fixes to launch.sh option parsing

* Fixed a small mistake that prevented the -h option from working.
* Corrected some capitalization / grammar issues in the help text.
* Removed a debug print that was left in.
This commit is contained in:
Brendan Dolan-Gavitt 2022-12-20 17:28:28 -05:00
parent 3ddde13f5f
commit df15a58544

@ -7,24 +7,23 @@ if [ ! -f .env ]; then
fi
source .env
function help() {
function showhelp () {
# Display Help
echo
echo "Usage: $0 [option...]"
echo "options:"
echo "-h, --help Print this Help."
echo "-d, --daemon Start with a daemon mode."
echo " -h Print this help."
echo " -d Start in daemon mode."
echo
}
while getopts ":h:d" option; do
while getopts "hd" option; do
case $option in
h)
help
showhelp
exit;;
d)
options="-d"
echo "-d option"
;;
\?) # incorrect option
echo "Error: Invalid option"