def parse_options!(args)
@options = {}
opts = ::OptionParser.new do |opts|
opts.banner = "Usage: teamocil [options] <layout>
Options:
"
opts.on("--here", "Set up the first window in the current window") do
@options[:here] = true
end
opts.on("--edit", "Edit the YAML layout file instead of using it") do
@options[:edit] = true
end
opts.on("--layout [LAYOUT]", "Use a specific layout file, instead of `~/.teamocil/<layout>.yml`") do |layout|
@options[:layout] = layout
end
opts.on("--list", "List all available layouts in `~/.teamocil/`") do
@options[:list] = true
end
opts.on("--show", "Show the content of the layout file instead of executing it") do
@options[:show] = true
end
end
opts.parse! args
end