reads arguments, returns values for options in assoc array
args is the array containing arguments. arg0 (executable name) should not be included in this
command is the string in which the provided command will be "returned"
errors is the array to put any errors in
reads arguments, returns values for options in assoc array args is the array containing arguments. arg0 (executable name) should not be included in this command is the string in which the provided command will be "returned" errors is the array to put any errors in