Concept Flow - Option parsing with getopts
Start script
Initialize getopts
Read next option
Option found?
No→Exit loop
Yes
Match option with case
Execute option action
Loop back to read next option
The script starts and initializes getopts to read options one by one. For each option found, it matches and executes the related action, looping until no more options.