Sha256: 25f719052ac2c26bc77f507ec542bcc72c544ef8ccf1624b44304011cd4bc411
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 Bytes
Contents
#!/usr/bin/env ruby module AlfLauncher def self.load begin $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require "alf" rescue LoadError => ex require "rubygems" require "alf" end end def self.normalize(args) opts = [] while !args.empty? && (args.first =~ /^\-/) opts << args.shift end if args.empty? or (args.size == 1 && File.exists?(args.first)) opts << "exec" end opts += args end def self.start(argv) load Alf::Command::Main.run(normalize(argv), __FILE__) end end # module AlfLaucher AlfLauncher.start(ARGV)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-0.9.2 | bin/alf |
alf-0.9.1 | bin/alf |
alf-0.9.0 | bin/alf |