autoboard/src/autoboard/app.cr

25 lines
385 B
Crystal
Raw Permalink Normal View History

2023-01-11 23:17:10 +00:00
require "./cli"
module AutoBoard
class App
def initialize()
@cli = Cli.new
end
def parse_args(args : Array(String))
config = @cli.parse_args(args)
puts config
rescue ex : OptionParser::MissingOption
STDERR.puts @cli.parser
STDERR.puts ""
STDERR.puts "ERROR: #{ex.message}"
exit 1
end
def run()
end
end
end