Skip to content

Commit 3cf868a

Browse files
committed
final restructuring for better navigation in code
1 parent a6b540b commit 3cf868a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

run

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ fi
170170

171171
for arg in "$@"; do
172172
case $arg in
173+
173174
"-h" | "--help")
174175
echo "$USAGE" && exit 0
175176
;;
177+
176178
*".c" | *".cpp" | *".py" | *".rs" | *".java")
177179
FILE_LOCATION=$arg
178180
if [[ ! -f $FILE_LOCATION ]]; then
@@ -189,6 +191,7 @@ for arg in "$@"; do
189191
run
190192
fi
191193
;;
194+
192195
"--cc="* | "-c="*)
193196
c=${arg#*=}
194197
if [[ -z $c ]]; then
@@ -200,6 +203,7 @@ for arg in "$@"; do
200203
shift
201204
fi
202205
;;
206+
203207
"--cxx="*)
204208
cx=${arg#*=}
205209
if [[ -z $cx ]]; then
@@ -211,13 +215,15 @@ for arg in "$@"; do
211215
shift
212216
fi
213217
;;
218+
214219
"--python="* | "-py="*)
215220
pyv=${arg#*=}
216221
if [ "$pyv" != 3 ] && [ "$pyv" != 2 ]; then
217222
echo "${red}ERROR: ${white}Expected versions for python are 2 and 3"
218223
_EXIT_
219224
fi
220225
;;
226+
221227
"--debug" | "d")
222228
DEBUG=true
223229
;;

0 commit comments

Comments
 (0)