lib/wurfl/command/loader.rb in wurfl-1.3.1 vs lib/wurfl/command/loader.rb in wurfl-1.3.5
- old
+ new
@@ -9,11 +9,10 @@
def usage
puts "Usage: wurfltools.rb loader [-p -v -h -e patchfile] -f wurflfile"
puts " --file, -f (wurflfile): The master WURFL file to load."
puts " --extension, -e (patchfile): A patch file to extend the traits of the master WURLF file."
- puts " --print, -p : Prints out handsets."
puts " --help, -h : Prints this message."
puts " --database, -d (databasename): Makes a PStore database for quick loading of data with other tools."
puts " --load, -l (databasename): Loads handsets from a PStore database instead of XML file."
exit 1
end
@@ -26,22 +25,19 @@
pstorefile = nil
pstoreload = false
begin
options = GetoptLong.new(
- ["-p","--print", GetoptLong::NO_ARGUMENT],
["-h","--help", GetoptLong::NO_ARGUMENT],
["-f","--file", GetoptLong::REQUIRED_ARGUMENT],
["-e","--extension", GetoptLong::REQUIRED_ARGUMENT],
["-d","--database", GetoptLong::REQUIRED_ARGUMENT],
["-l","--load", GetoptLong::REQUIRED_ARGUMENT]
)
options.each do |opt,arg|
case opt
- when "-p"
- print = true
when "-h"
usage
exit 1
when "-f"
wurflfile = arg
@@ -111,16 +107,7 @@
rescue => err
STDERR.puts "Error: Cannot creat PStore file."
STDERR.puts err.message
end
end
-
- if print
- hands.each do |key,value|
- puts "********************************************\n\n"
- puts "#{key}\n"
- value.each { |key,value| puts "#{key} = #{value}" }
- end
- end
-
end
end