@@ -274,8 +274,8 @@ configly_list_command() {
274274 config_show
275275}
276276
277- # :command.parse_args
278- parse_args () {
277+ # :command.parse_requirements
278+ parse_requirements () {
279279 # :command.fixed_flag_filter
280280 case " $1 " in
281281 --version )
@@ -290,6 +290,7 @@ parse_args() {
290290 ;;
291291
292292 esac
293+ # :command.environment_variables_filter
293294 # :command.command_filter
294295 action=$1
295296
@@ -300,21 +301,21 @@ parse_args() {
300301 set | s )
301302 action=" set"
302303 shift
303- configly_set_parse_args " $@ "
304+ configly_set_parse_requirements " $@ "
304305 shift $#
305306 ;;
306307
307308 get | g )
308309 action=" get"
309310 shift
310- configly_get_parse_args " $@ "
311+ configly_get_parse_requirements " $@ "
311312 shift $#
312313 ;;
313314
314315 list | l )
315316 action=" list"
316317 shift
317- configly_list_parse_args " $@ "
318+ configly_list_parse_requirements " $@ "
318319 shift $#
319320 ;;
320321
@@ -326,7 +327,7 @@ parse_args() {
326327 esac
327328 # :command.required_args_filter
328329 # :command.required_flags_filter
329- # :command.parse_args_while
330+ # :command.parse_requirements_while
330331 while [[ $# -gt 0 ]]; do
331332 key=" $1 "
332333 case " $key " in
@@ -337,7 +338,7 @@ parse_args() {
337338 ;;
338339
339340 * )
340- # :command.parse_args_case
341+ # :command.parse_requirements_case
341342 echo -e " invalid argument: $key "
342343 exit 1
343344 ;;
@@ -346,8 +347,8 @@ parse_args() {
346347 done
347348}
348349
349- # :command.parse_args
350- configly_set_parse_args () {
350+ # :command.parse_requirements
351+ configly_set_parse_requirements () {
351352 # :command.fixed_flag_filter
352353 case " $1 " in
353354 --version )
@@ -362,6 +363,7 @@ configly_set_parse_args() {
362363 ;;
363364
364365 esac
366+ # :command.environment_variables_filter
365367 # :command.command_filter
366368 action=" set"
367369 # :command.required_args_filter
@@ -381,7 +383,7 @@ configly_set_parse_args() {
381383 exit 1
382384 fi
383385 # :command.required_flags_filter
384- # :command.parse_args_while
386+ # :command.parse_requirements_while
385387 while [[ $# -gt 0 ]]; do
386388 key=" $1 "
387389 case " $key " in
@@ -392,7 +394,7 @@ configly_set_parse_args() {
392394 ;;
393395
394396 * )
395- # :command.parse_args_case
397+ # :command.parse_requirements_case
396398 if [[ ! ${args[key]} ]]; then
397399 args[key]=$1
398400 shift
@@ -409,8 +411,8 @@ configly_set_parse_args() {
409411 done
410412}
411413
412- # :command.parse_args
413- configly_get_parse_args () {
414+ # :command.parse_requirements
415+ configly_get_parse_requirements () {
414416 # :command.fixed_flag_filter
415417 case " $1 " in
416418 --version )
@@ -425,6 +427,7 @@ configly_get_parse_args() {
425427 ;;
426428
427429 esac
430+ # :command.environment_variables_filter
428431 # :command.command_filter
429432 action=" get"
430433 # :command.required_args_filter
@@ -436,7 +439,7 @@ configly_get_parse_args() {
436439 exit 1
437440 fi
438441 # :command.required_flags_filter
439- # :command.parse_args_while
442+ # :command.parse_requirements_while
440443 while [[ $# -gt 0 ]]; do
441444 key=" $1 "
442445 case " $key " in
@@ -447,7 +450,7 @@ configly_get_parse_args() {
447450 ;;
448451
449452 * )
450- # :command.parse_args_case
453+ # :command.parse_requirements_case
451454 if [[ ! ${args[key]} ]]; then
452455 args[key]=$1
453456 shift
@@ -461,8 +464,8 @@ configly_get_parse_args() {
461464 done
462465}
463466
464- # :command.parse_args
465- configly_list_parse_args () {
467+ # :command.parse_requirements
468+ configly_list_parse_requirements () {
466469 # :command.fixed_flag_filter
467470 case " $1 " in
468471 --version )
@@ -477,11 +480,12 @@ configly_list_parse_args() {
477480 ;;
478481
479482 esac
483+ # :command.environment_variables_filter
480484 # :command.command_filter
481485 action=" list"
482486 # :command.required_args_filter
483487 # :command.required_flags_filter
484- # :command.parse_args_while
488+ # :command.parse_requirements_while
485489 while [[ $# -gt 0 ]]; do
486490 key=" $1 "
487491 case " $key " in
@@ -492,7 +496,7 @@ configly_list_parse_args() {
492496 ;;
493497
494498 * )
495- # :command.parse_args_case
499+ # :command.parse_requirements_case
496500 echo -e " invalid argument: $key "
497501 exit 1
498502 ;;
@@ -519,7 +523,7 @@ initialize() {
519523# :command.run
520524run () {
521525 declare -A args
522- parse_args " $@ "
526+ parse_requirements " $@ "
523527
524528 if [[ $action == " set" ]]; then
525529 if [[ ${args[--help]} ]]; then
0 commit comments