lib/lederhosen/tasks/sort.rb in lederhosen-0.0.8 vs lib/lederhosen/tasks/sort.rb in lederhosen-0.0.9
- old
+ new
@@ -6,12 +6,11 @@
class CLI
desc "sort fasta file by length",
"--input=joined.fasta --output=sorted.fasta"
- method_options :input => :string, :output => :string
- method_option :input, :type => :string, :default => 'joined.fasta'
- method_option :output, :type => :string, :default => 'sorted.fasta'
+ method_option :input, :type => :string, :required => true
+ method_option :output, :type => :string, :required => true
def sort
input = options[:input]
output = options[:output]
`uclust --mergesort #{input} --output #{output}`
\ No newline at end of file