Browse Source

Re-align argument processor

Alois Mahdal 6 years ago
parent
commit
8758f5f170
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/include-bash/pretty.sh

+ 5
- 5
src/include-bash/pretty.sh View File

@@ -145,11 +145,11 @@ mkusage() {
145 145
     local es=$EXIT_USAGE    # our exit status
146 146
     local doexit=true       # should we exit?
147 147
     while true; do case "$1" in
148
-        -e) es="$2";            shift 2 || return 2 ;;
149
-        -E) doexit=false;       shift        ;;
150
-        -k) es=$EXIT_OK; shift       ;;
151
-        --)                     shift; break ;;
152
-        *)                      break        ;;
148
+        -e) es="$2";        shift 2 || return 2 ;;
149
+        -E) doexit=false;   shift ;;
150
+        -k) es=$EXIT_OK;    shift ;;
151
+        --)                 shift; break ;;
152
+        *)                  break ;;
153 153
     esac done
154 154
     _pretty__echo -u "$@";
155 155
     $doexit && exit "$es"