Added optparse to ruby template