Browse Source

Use arguments to enable debug and verbosity in Shellfu template

Alois Mahdal 6 years ago
parent
commit
ede1e3e97a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      bin/mkx

+ 2
- 2
bin/mkx View File

128
             echo ''
128
             echo ''
129
             echo 'shellfu import pretty'
129
             echo 'shellfu import pretty'
130
             echo ''
130
             echo ''
131
-            echo 'PRETTY_DEBUG=${PRETTY_DEBUG:-true}'
132
-            echo ''
133
             echo 'usage() {'
131
             echo 'usage() {'
134
             echo '    mkusage "arg..."'
132
             echo '    mkusage "arg..."'
135
             echo '}'
133
             echo '}'
136
             echo ''
134
             echo ''
137
             echo 'main() {'
135
             echo 'main() {'
138
             echo '    while true; do case $1 in'
136
             echo '    while true; do case $1 in'
137
+            echo '        -d) PRETTY_DEBUG=true;   shift ;;'
138
+            echo '        -v) PRETTY_VERBOSE=true; shift ;;'
139
             echo '        -*) usage ;;'
139
             echo '        -*) usage ;;'
140
             echo '        *)  break ;;'
140
             echo '        *)  break ;;'
141
             echo '    esac done'
141
             echo '    esac done'