#!/usr/bin/ruby

require 'rubygems'
require 'bundler/setup'
require 'slop'

opts = Slop.new :help => true do
  banner "markdown_server [start|stop|status|list|add|remove|browser]"
  
  command :start do
    on :b, :browser, 'Set the browser binary to open' do
      "browser!"
    end
  end
  
  command :browser do
    on :b, :browser, 'Set the browser binary to open' do
      "browser!"
    end
  end
  
  on :v, :version do
    puts MarkdownServer::Version
  end
end

p opts.to_h
p opts.parse
