lib/hss in hss-0.1.8 vs lib/hss in hss-0.1.9
- old
+ new
@@ -31,10 +31,10 @@
puts 'No config file found'
exit 1
end
Conf = open(possible_paths[0]) { |file| YAML.load(file.read) }
-Input = ARGV.shift
+Input = ARGV.delete_at ARGV.find_index { |x| x[0] != '-' }
Args = ARGV.inject('') { |memo, obj| memo += " '" + obj.gsub(/([$"])/, '\1') + "'" }
if Input.nil? or Input == 'help'
puts 'How to use:'
puts '(what you type) -> (where it takes you)'