#!/bin/bash source functions.sh case "$1" in -cs | --char-size ) shaWithNum $2 ;; -l | --left-hand ) leftHand ;; -lcs | --left-char-size ) leftHandNum $2 ;; "") shaStatic ;; * | -h | --help ) echo echo "NAME" echo " bashpass" echo echo "SYNOPSIS" echo " bashpass [-h] [--help] [-cs ] [-l] [-lcs ]" echo echo "-cs | --char-size " echo " specify password length" echo echo "-l | --left-hand" echo " left handed password" echo echo "-lcs | --left-char-size " echo " left hand password with length" echo ;; esac