Sha256: 1e601312b97eed8a527917b53db720f8fe14fd546c54d7fda4bdeaec27a19ced

Contents?: true

Size: 896 Bytes

Versions: 54

Compression:

Stored size: 896 Bytes

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>content</key>
	<string>require "optparse"

options = {${1::default =&gt; "args"}}

ARGV.options do |opts|
	opts.banner = "Usage:  #{File.basename(\$PROGRAM_NAME)} [OPTIONS]${2/^\s*$|(.*\S.*)/(?1: )/}${2:OTHER_ARGS}"
	
	opts.separator ""
	opts.separator "Specific Options:"
	
	$0
	
	opts.separator "Common Options:"
	
	opts.on( "-h", "--help",
	         "Show this message." ) do
		puts opts
		exit
	end
	
	begin
		opts.parse!
	rescue
		puts opts
		exit
	end
end
</string>
	<key>name</key>
	<string>option_parse { .. }</string>
	<key>scope</key>
	<string>source.ruby</string>
	<key>tabTrigger</key>
	<string>optp</string>
	<key>uuid</key>
	<string>C3C48948-4F49-484E-A8DE-DEB44723099E</string>
</dict>
</plist>

Version data entries

54 entries across 46 versions & 3 rubygems

Version Path
redcar-bundles-0.3 Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-bundles-0.2-java Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-bundles-0.1-java Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-dev-0.12.1dev-java plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-dev-0.12.0dev-java plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.11 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.11.0dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.10 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.9.2 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.9.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.9.0 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.8.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.8 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.7 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.6.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.6 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.6.1dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.5.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.5 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist
redcar-0.5.6dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist