Indent here doc in usage() of bin/kaledoscope-builder. Issue #299.

pull/305/head
Chris King-Parra 7 years ago committed by Gergely Nagy
parent f094bdaa4e
commit 96f3f18aaf

@ -41,6 +41,7 @@ firmware_size () {
echo "${output}" | sed -e "s/\(Program:.*\)(\([0-9\.]*%\) Full)/\1(${PERCENT}% Full)/" echo "${output}" | sed -e "s/\(Program:.*\)(\([0-9\.]*%\) Full)/\1(${PERCENT}% Full)/"
} }
find_sketch () { find_sketch () {
SKETCH="${SKETCH:-${DEFAULT_SKETCH}}" SKETCH="${SKETCH:-${DEFAULT_SKETCH}}"
LIBRARY="${LIBRARY:-${SKETCH}}" LIBRARY="${LIBRARY:-${SKETCH}}"
@ -294,43 +295,43 @@ EOF
} }
usage () { usage () {
cat <<EOF cat <<- EOF
Usage: $0 SKETCH commands... Usage: $0 SKETCH commands...
Runs all of the commands in the context of the Sketch. Runs all of the commands in the context of the Sketch.
Available commands: Available commands:
help help
This help screen. This help screen.
compile compile
Compiles the sketch. Compiles the sketch.
size size
Reports the size of the compiled sketch. Reports the size of the compiled sketch.
build build
Runs compile and report-size. Runs compile and report-size.
clean clean
Cleans up the output directory. Cleans up the output directory.
size-map size-map
Displays the size map for the sketch. Displays the size map for the sketch.
disassemble disassemble
Decompile the sketch. Decompile the sketch.
reset-device reset-device
Reset the device. Reset the device.
flash flash
Flashes the firmware using avrdude. Flashes the firmware using avrdude.
build-all build-all
Build all Sketches we can find. Build all Sketches we can find.
EOF EOF
} }
help () { help () {

Loading…
Cancel
Save