Process arguments either from the command-line interface or reading from stdin while being piped.