require File.expand_path("../../lib/docopt.rb", __FILE__) doc = <] [-m ] [-f] [--tags|--no-tags] [--mirror] #{__FILE__} remote rename #{__FILE__} remote rm #{__FILE__} remote set-head (-a | -d | ) #{__FILE__} remote set-branches [--add] ... #{__FILE__} remote set-url [--push] [] #{__FILE__} remote set-url --add [--push] #{__FILE__} remote set-url --delete [--push] #{__FILE__} remote [-v | --verbose] show [-n] #{__FILE__} remote prune [-n | --dry-run] #{__FILE__} remote [-v | --verbose] update [-p | --prune] [( | )...] Options: -v, --verbose -t -m -f --tags --no-tags --mittor -a -d -n, --dry-run -p, --prune --add --delete --push --mirror DOCOPT begin require "pp" pp Docopt::docopt(doc) rescue Docopt::Exit => e puts e.message end