blob: 2e2de9d8f1bbe8aab6669146ddfcc357ba22b806 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|