#!/usr/bin/env ruby require 'pathname' # Byebug for dev begin require 'byebug' rescue LoadError end source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path $LOAD_PATH << source_path require 'mobile_workflow_cli' if ARGV.empty? puts "See --help for more info" exit 0 elsif ['-v', '--version'].include? ARGV[0] puts MobileWorkflowCli::VERSION exit 0 end # Add the default task ARGV.unshift(MobileWorkflowCli::AppCleaner.default_task) unless ARGV[0] == '--help' # Run the cleaner MobileWorkflowCli::AppCleaner.start(ARGV)