From 71278b098dcea1a5fb8520ab08b086cded0764fe Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 28 Jul 2019 16:39:21 +0200 Subject: trollop -> optimist --- kmeans | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kmeans') diff --git a/kmeans b/kmeans index c1684ee..dcf7774 100755 --- a/kmeans +++ b/kmeans @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require 'zipf' -require 'trollop' +require 'optimist' def read_data fn data = {} @@ -57,7 +57,7 @@ def update assignment, data end def main - conf = Trollop::options do + conf = Optimist::options do opt :k, "k", :type => :int, :required => true opt :input, "input: one feature vector per line", :type => :string, :required => true opt :max_iterations, "max. number of iterations", :type => :int, :default => 100 -- cgit v1.2.3