use lib.bash getopts error checking
use lib.bash getopts error checking

(originally commit 0d8128c8d73fb209aab3579ef4c08d67996b1500)

grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks