class Xcodeproj::Command::Sort
def self.banner
def self.banner %(Sorts the give project $ sort [PROJECT] If no `PROJECT' is specified then the current work directory is searched for one.) end
def initialize(argv)
def initialize(argv) xcodeproj_path = argv.shift_argument @xcodeproj_path = File.expand_path(xcodeproj_path) if xcodeproj_path super unless argv.empty? end
def run
def run xcodeproj.sort xcodeproj.save puts "The `#{File.basename(xcodeproj_path)}` project was sorted" end