diff options
Diffstat (limited to 'bin/knapsack_solver')
| -rw-r--r-- | bin/knapsack_solver | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/knapsack_solver b/bin/knapsack_solver new file mode 100644 index 0000000..2e2de9d --- /dev/null +++ b/bin/knapsack_solver @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby + +require 'knapsack_solver/cli' + +begin + KnapsackSolver::CLI.run(ARGV) + exit 0 +rescue StandardError => e + STDERR.puts "ERROR: #{e.message}" + STDERR.puts "Try 'knapsack_solver --help' for more information." + exit 1 +end |
