Getopt::Yath is the getopt processor yath uses. It should work perfectly fine outside of yath as well.