Skip to content

Commit fdef02c

Browse files
committed
primitive: process_commandline_arguments: Sort comand-line options alphabetically
For developers' convenience. Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
1 parent afdabe0 commit fdef02c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source Code/Shell Script(GNU Bash)(primitive).template.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ process_commandline_arguments() {
120120
break
121121
else
122122
case "${parameters[0]}" in
123+
--debug \
124+
|-d)
125+
enable_debug=Y
126+
;;
123127
--help \
124128
|-h)
125129
print_help;
126130
exit 0
127131
;;
128-
--debug \
129-
|-d)
130-
enable_debug=Y
131-
;;
132132
*)
133133
printf -- \
134134
'%s: Error: Unknown command-line argument "%s"\n' \

0 commit comments

Comments
 (0)