#!/usr/bin/env ruby require 'Newick' require 'optparse' ARGV.options {|opts| opts.banner << " tree-file [..tree-file]" begin opts.parse! rescue STDERR.puts $!.message STDERR.puts opts exit(1) end if (ARGV.size < 1) STDERR.puts opts exit(1) end } ARGV.each {|arg| tree = NewickTree.fromFile(arg) tree.taxa.each {|taxon| printf("%s\n", taxon) } }