Input redirection handles commands with any number of flags.