|
|
|
|
|
by pavon
2167 days ago
|
|
Or just a multiline string: #!/bin/bash
USAGE="my-script — does one thing well
Usage:
my-script <input> <output>
Options:
<input> Input file to read.
<output> Output file to write. Use '-' for stdout.
-h Show this message.
"
help() {
echo "$USAGE"
}
This is my standard approach which is cleaner for putting the documentation at the very top of the file like the linked article. |
|