1 2 3 4 5 6
require "optparse" require "pathname" OptionParser.accept Pathname do |path| Pathname(path).expand_path if path end