Bash programming/Parsing Command-Line Arguments

Parsing command-line argument can be done at least using three different methods
 * Using
 * Bash Space-Separated (e.g., --option argument) (without getopt[s])
 * Bash Equals-Separated (e.g., --option=argument) (without getopt[s])

Basic usage template:
 * 1) !/bin/bash

program_name=$0

function usage { echo "Usage: $program_name [parameter1] [parameter2] [parameter3]" echo " parameter1 - parameter 1 explanation" echo " parameter2 - parameter 2 explanation" echo " Example: $program_name parameter1 parameter2 parameter3" exit 1 }

if [ $# == 0 ]; then usage fi