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