mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-21 23:37:47 +00:00
dfd799b4e5
If main.sh is being sourced instead of being executed it respects the variables __usage and __helptext being defined beforehand. Its behaviour will depend on the sourcing script. If __usage is defined but empty no argument parsing is done. If __helptext is defined but empty no helptext will be shown. Logging support still exists as it did before. The environment variables LOG_LEVEL and NO_COLOR are supported just as they were before.
17 lines
592 B
Plaintext
17 lines
592 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.
|
|
|