diff options
Diffstat (limited to 'select-from')
| -rwxr-xr-x | select-from | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/select-from b/select-from index 0ccfeac..e9a394d 100755 --- a/select-from +++ b/select-from @@ -1,13 +1,13 @@ #!/usr/bin/env ruby -require 'optimist' -require 'zipf' +require "optimist" +require "zipf" opts = Optimist::options do banner "select_from [--invert] -i <file> < <line separated data>" - opt :index, "Line numbers to output.", :type => :string, :short => '-i', :required => true - opt :invert, "Invert selection.", :type => :bool, :short => '-j', :default => false - opt :from1, "Index starting from 1.", :type => :bool, :short => '-k', :default => false + opt :index, "Line numbers to output.", :type => :string, :short => "-i", :required => true + opt :invert, "Invert selection.", :type => :bool, :short => "-j", :default => false + opt :from1, "Index starting from 1.", :type => :bool, :short => "-k", :default => false end accept = {} @@ -30,4 +30,3 @@ while line = STDIN.gets end i += 1 end - |
