Sha256: 1738090ca6bfbae2c496d79c77cb6dd6fee9ac36c3e64204e6a88848b0fb361f
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
#!/usr/bin/env ruby require "fixbraces" require "trollop" opts = Trollop::options do version "v#{Fixbraces::VERSION}" banner <<BANN Puts the opening brace on the same line as the opening clause for Objective-C (.h and .m) files. Usage: fixbraces [options] files ... where [options] are: BANN end source_files = [] ARGV.each do |f| f = File.expand_path f extension = File.extname f if File.directory? f source_files.push Dir.glob File.join(f, "**/*.{h,m}") elsif File.file? f and (extension == ".h" or extension == ".m") source_files.push f end end source_files.flatten.each do |f| Fixbraces.process_file f end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fixbraces-0.9.0 | bin/fixbraces |