~dricottone/my-utils

d5a3dac8603733ac127ed11cc7defbc2375a58f2 — Dominic Ricottone 2 years ago 0fbc09c
Formatting fixes; Help message fixes
7 files changed, 12 insertions(+), 10 deletions(-)

M archives/epub
M archives/mktar
M core/debom
M core/enumerate
M core/mkbak
M core/myparse.bash
M core/whichhead
M archives/epub => archives/epub +4 -2
@@ 13,6 13,8 @@ read -r -d '' help_message <<-EOF
	 -q, --quiet           suppress error messages and prompts
	 -v, --verbose         show additional messages
	 -V, --version         print version number and exit
	 -w WIDTH,             set width of pager
	     --width WIDTH
EOF

source /usr/local/lib/mylib.bash


@@ 59,7 61,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting verbose option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;



@@ 72,7 74,7 @@ while [[ $# -gt 0 ]]; do
      error_msg "Cannot set column width to '${2}' (not an integer >= 1)"
    fi
    debug_msg "Setting column width to ${2} (was ${width})"
    width="$2";
    width="$2"
    shift; shift
    ;;


M archives/mktar => archives/mktar +2 -2
@@ 101,7 101,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting verbose option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;



@@ 187,7 187,7 @@ if ! prompt_overwrite "$archive_fn"; then
elif [[ "$checksum" -eq 1 ]] && ! prompt_overwrite "$checksum_fn"; then
  exit 1
fi
for target in "${positional[@]}";do
for target in "${positional[@]}"; do
  if [[ ! -f "$target" ]] && [[ ! -d "$target" ]]; then
    error_msg "No such file '${target}'"
  fi

M core/debom => core/debom +1 -1
@@ 66,7 66,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting verbose option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;


M core/enumerate => core/enumerate +2 -2
@@ 69,7 69,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting verbose option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;



@@ 82,7 82,7 @@ while [[ $# -gt 0 ]]; do
      error_msg "Cannot set filename width to '${2}' (not an integer >= 0)"
    fi
    debug_msg "Setting filename width to ${2} (was ${width})"
    width="$2";
    width="$2"
    shift; shift
    ;;


M core/mkbak => core/mkbak +1 -1
@@ 56,7 56,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting verbose option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;


M core/myparse.bash => core/myparse.bash +1 -1
@@ 24,7 24,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting VERBOSE option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;


M core/whichhead => core/whichhead +1 -1
@@ 45,7 45,7 @@ while [[ $# -gt 0 ]]; do

  -v|--verbose)
    debug_msg "Setting verbose option to 1 (was ${verbose})"
    verbose=1;
    verbose=1
    shift
    ;;