Enhance help message, remove extra whitespace

pull/1099/merge
Steve Penrod 2017-09-27 00:31:55 -07:00
parent 4afa64427d
commit 26559388ea
1 changed files with 14 additions and 14 deletions

View File

@ -28,7 +28,7 @@ fi
function help() { function help() {
echo "${script}: Mycroft command/service launcher" echo "${script}: Mycroft command/service launcher"
echo "usage: ${script} [command]" echo "usage: ${script} [command] [params]"
echo echo
echo "Services:" echo "Services:"
echo " all runs core services: bus, audio, skills, voice" echo " all runs core services: bus, audio, skills, voice"
@ -76,7 +76,7 @@ function name-to-script-path() {
"audioaccuracytest") _script=${DIR}/mycroft/audio-accuracy-test/audio_accuracy_test.py ;; "audioaccuracytest") _script=${DIR}/mycroft/audio-accuracy-test/audio_accuracy_test.py ;;
"sdkdoc") _script=${DIR}/doc/generate_sdk_docs.py ;; "sdkdoc") _script=${DIR}/doc/generate_sdk_docs.py ;;
"enclosure") _script=${DIR}/mycroft/client/enclosure/main.py ;; "enclosure") _script=${DIR}/mycroft/client/enclosure/main.py ;;
*) *)
echo "Error: Unknown name '${1}'" echo "Error: Unknown name '${1}'"
exit 1 exit 1
@ -94,7 +94,7 @@ function launch-process() {
fi fi
name-to-script-path ${1} name-to-script-path ${1}
# Launch process in background, sending log to scripts/log/mycroft-*.log # Launch process in background, sending log to scripts/log/mycroft-*.log
echo "Starting $1" echo "Starting $1"
python ${_script} $_params python ${_script} $_params
@ -110,7 +110,7 @@ function launch-background() {
fi fi
name-to-script-path ${1} name-to-script-path ${1}
# Launch process in background, sending log to scripts/log/mycroft-*.log # Launch process in background, sending log to scripts/log/mycroft-*.log
echo "Starting background service $1" echo "Starting background service $1"
python ${_script} $_params >> ${scripts_dir}/logs/mycroft-${1}.log 2>&1 & python ${_script} $_params >> ${scripts_dir}/logs/mycroft-${1}.log 2>&1 &
@ -130,7 +130,7 @@ case ${_opt} in
launch-background audio launch-background audio
launch-background voice launch-background voice
;; ;;
"all") "all")
echo "Starting all mycroft-core services" echo "Starting all mycroft-core services"
launch-background bus launch-background bus
@ -140,16 +140,16 @@ case ${_opt} in
;; ;;
"bus") "bus")
launch-background ${_opt} launch-background ${_opt}
;; ;;
"audio") "audio")
launch-background ${_opt} launch-background ${_opt}
;; ;;
"skills") "skills")
launch-background ${_opt} launch-background ${_opt}
;; ;;
"voice") "voice")
launch-background ${_opt} launch-background ${_opt}
;; ;;
"debug") "debug")
@ -160,7 +160,7 @@ case ${_opt} in
launch-background voice launch-background voice
launch-process cli launch-process cli
;; ;;
"cli") "cli")
launch-process ${_opt} launch-process ${_opt}
;; ;;
@ -174,16 +174,16 @@ case ${_opt} in
launch-process ${_opt} launch-process ${_opt}
;; ;;
"audiotest") "audiotest")
launch-process ${_opt} launch-process ${_opt}
;; ;;
"audioaccuracytest") "audioaccuracytest")
launch-process ${_opt} launch-process ${_opt}
;; ;;
"sdkdoc") "sdkdoc")
launch-process ${_opt} launch-process ${_opt}
;; ;;
"enclosure") "enclosure")
launch-process ${_opt} launch-process ${_opt}
;; ;;
*) *)