mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-22 15:52:22 +00:00
7cf9ea708d
* Fix shifting over `--`: don't throw errexit Fixes #21 * Add error trapping (including Ctrl-C) info to FAQ Closes #47 * Add backtracing to help localize errors - Fixes #44 - Backtracing is turned on when the debugging `-d` flag is passed, otherwise backtracing function defined but signal trap not set. - Update main-help fixture due to moving trap * Untabify main.sh Might be a controversial move, but I loath tabs... * Add checks for tab chars and trailing whitespace - Update poor-man's style enforcement script to check for these violations - Better document style guidlines in README with small tweaks * Add a magic variable to indicate if being source if `__i_am_main_script=1 #true` then `main.sh` called directly Fixes #45
18 lines
646 B
Plaintext
18 lines
646 B
Plaintext
ACCPTST:STDIO_REPLACE_DATETIMES
|
||
|
||
Help using {root}/main.sh
|
||
|
||
-f --file [arg] Filename to process. Required.
|
||
-t --temp [arg] Location of tempfile. Default="{tmpdir}/bar"
|
||
-v Enable verbose mode, print script as it is executed
|
||
-d --debug Enables debug mode
|
||
-h --help This page
|
||
-n --no-color Disable color output
|
||
-1 --one Do just one thing
|
||
|
||
This is Bash3 Boilerplate's help text. Feel free to add any description of your
|
||
program or elaborate more on command-line arguments. This section is not
|
||
parsed and will be added as-is to the help.
|
||
|
||
{datetime} UTC [32m[ info][0m Cleaning up. Done
|