summaryrefslogtreecommitdiff
path: root/ng
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2019-07-28 16:39:21 +0200
committerPatrick Simianer <pks@pks.rocks>2019-07-28 16:39:21 +0200
commit71278b098dcea1a5fb8520ab08b086cded0764fe (patch)
treea9383ace41f49f7fda084756a0890bd976a6abb0 /ng
parent1fd4762a41cf84d9b6ebe9ed4dcf83cde78f61d3 (diff)
trollop -> optimist
Diffstat (limited to 'ng')
-rwxr-xr-xng4
1 files changed, 2 insertions, 2 deletions
diff --git a/ng b/ng
index 7a3552f..f3a031d 100755
--- a/ng
+++ b/ng
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require 'zipf'
-require 'trollop'
+require 'optimist'
-conf = Trollop::options do
+conf = Optimist::options do
banner "ng < <input>"
opt :n, "n for Ngrams", :type => :int, :default => 4
opt :fix, "Don't output lower order Ngrams.", :type => :bool, :default => false