How to use Flags on Bash Script on Ubuntu 22.04
Handling flags in Bash scripts allows users to customize the script’s behaviour and provides greater flexibility and usability. The getopts command is suitable for handling short options, while an extended approach enables handling both short and long options.
For more explanation on this video: https://www.linuxhelp.com/how-to-use-flags-on-bash-script-on-ubuntu-22-04
ubuntu