mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-04-14 03:12:57 +00:00
Add a comment about expansion, see #26
This commit is contained in:
parent
fc7802d707
commit
d70312e916
2
main.sh
2
main.sh
@ -51,6 +51,8 @@ NO_COLOR="${NO_COLOR:-}" # true = disable color. otherwise autodetected
|
||||
# - A short option must be preset for every long option; but every short option
|
||||
# need not have a long option
|
||||
# - `--` is respected as the separator between options and arguments
|
||||
# - We do not bash-expand defaults, so setting '~/app' as a default will not resolve to ${HOME}.
|
||||
# you can use bash variables to work around this (so use ${HOME} instead)
|
||||
read -r -d '' usage <<-'EOF' || true # exits non-zero when EOF encountered
|
||||
-f --file [arg] Filename to process. Required.
|
||||
-t --temp [arg] Location of tempfile. Default="/tmp/bar"
|
||||
|
Loading…
x
Reference in New Issue
Block a user