(defun argee--get-definition (arg)
"Get definition of the argument ARG."
(cl-loop for def in argee--argument-definitions
for (_whole argname) = (argee-match-string
argee-common-argument-regexp
arg)
for argname = (string-remove-prefix
argee-negated-boolean-option-prefix
argname)
for name = (argee-argument-name def)
for alias = (argee-argument-alias def)
when (or (string= argname name)
(member argname alias))
return def))
(defun argee--get-definition (arg)
"Get definition of the argument ARG."
(cl-loop for def in argee--argument-definitions
for (_whole argname) = (argee-match-string
argee-common-argument-regexp
arg)
do (setq argname
(string-remove-prefix
argee-negated-boolean-option-prefix
argname))
for name = (argee-argument-name def)
for alias = (argee-argument-alias def)
when (or (string= argname name)
(member argname alias))
return def))