dired-check-switches

dired-check-switches is a compiled Lisp function in `dired.el'.

(dired-check-switches SWITCHES SHORT &optional LONG)

Return non-nil if the string SWITCHES matches LONG or SHORT format.