Remove the c-style "have I been included before" check, because it actually was making things worse

This commit is contained in:
2013-11-06 15:21:40 -05:00
parent 16548e463b
commit f95d181b6d

View File

@@ -329,29 +329,26 @@ function cmdarg_purge
CMDARG_GETOPTLIST="h" CMDARG_GETOPTLIST="h"
} }
if [[ "${_DEFINED_CMDARG}" == "" ]]; then # Holds the final map of configuration options
export _DEFINED_CMDARG=0 declare -xA cmdarg_cfg
# Holds the final map of configuration options # Maps (short arg) -> (long arg)
declare -xA cmdarg_cfg declare -xA CMDARG
# Maps (short arg) -> (long arg) # Maps (long arg) -> (short arg)
declare -xA CMDARG declare -xA CMDARG_REV
# Maps (long arg) -> (short arg) # A list of optional arguments (e.g., no :)
declare -xA CMDARG_REV declare -xa CMDARG_OPTIONAL
# A list of optional arguments (e.g., no :) # A list of required arguments (e.g., :)
declare -xa CMDARG_OPTIONAL declare -xa CMDARG_REQUIRED
# A list of required arguments (e.g., :) # Maps (short arg) -> (description)
declare -xa CMDARG_REQUIRED declare -xA CMDARG_DESC
# Maps (short arg) -> (description) # Maps (short arg) -> default
declare -xA CMDARG_DESC declare -xA CMDARG_DEFAULT
# Maps (short arg) -> default # Maps (short arg) -> validator
declare -xA CMDARG_DEFAULT declare -xA CMDARG_VALIDATORS
# Maps (short arg) -> validator # Miscellanious info about this script
declare -xA CMDARG_VALIDATORS declare -xA CMDARG_INFO
# Miscellanious info about this script # Map of (short arg) -> flags
declare -xA CMDARG_INFO declare -xA CMDARG_FLAGS
# Map of (short arg) -> flags # Map of (short arg) -> type (string, array, hash)
declare -xA CMDARG_FLAGS declare -xA CMDARG_TYPES
# Map of (short arg) -> type (string, array, hash) CMDARG_GETOPTLIST="h"
declare -xA CMDARG_TYPES
CMDARG_GETOPTLIST="h"
fi