complete verbose option
This commit is contained in:
parent
c332e9b32b
commit
e464928a1b
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,10 @@ print_version() {
|
||||||
echo "$(basename $0) v.${version}"
|
echo "$(basename $0) v.${version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_verbose() {
|
||||||
|
verbose=1
|
||||||
|
}
|
||||||
|
|
||||||
# first, test if there is help, version, or verbose args.
|
# first, test if there is help, version, or verbose args.
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
|
@ -54,4 +58,5 @@ for i in "$@"; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
(( verbose )) && echo "verbose is set"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue