Options and Flags: getopts and --help

getopts reads a script's one-letter options in any order, flags and options with a value alike, and a real tool also answers --help with a help page and --version with its version number.

Updated

Cheat sheet for the lesson Options and Flags: getopts and --help: getopts reads a script's one-letter options in any order, flags and options with a value alike, and a real tool also answers --help with a help page and --version with its version number.
Category
Bash
Level
Journeyman
Tags
flags-and-options, getopts, here-document, linux, standard-streams, unix