summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2019-08-05 11:28:24 +0200
committerPatrick Simianer <pks@pks.rocks>2019-08-05 11:28:24 +0200
commitbd84f0f2f1eb693ebdf56b92e2aae67cd785d7ce (patch)
treecb01f3d9f7b5726f3bde5bd46fdc623bc5913bd1 /sample
parent43aa6586f5807aeb99d8e08f996707d92e18774e (diff)
trollop -> optimist
Diffstat (limited to 'sample')
-rwxr-xr-xsample4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample b/sample
index 8d3a322..aa46ddb 100755
--- a/sample
+++ b/sample
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
-require 'trollop'
+require 'optimist'
STDIN.set_encoding 'utf-8'
STDOUT.set_encoding 'utf-8'
-opts = Trollop::options do
+opts = Optimist::options do
banner "sample --size <n> [--shuffle] --file <line separated data>"
opt :size, "Sample P % or # lines from file or N.", :type => :float
opt :shuffle, "Sample is shuffled.", :type => :bool