bin/imagebin in dougsko-imagebin-0.1.2 vs bin/imagebin in dougsko-imagebin-0.1.3

- old
+ new

@@ -30,11 +30,11 @@ "adult" => "f", } opts = OptionParser.new do |opts| opts.banner = "imagebin.rb is a CLI to http://imagebin.ca - Example: ./imagebin.rb -f <pic.png>" + Example: imagebin -f <pic.png>" opts.separator "" opts.separator "Options:" opts.on("-f <file>", "--file <file>", String, "Use a file for input") do |file| @@ -52,10 +52,12 @@ opts.on("-d [description]", "--description [description]", String, "Description") do |desc| options[:description] = desc end opts.on("-p", "--private", "Private") do |priv| - options[:adult] = "priv" + if priv == true + options[:adult] = "t" + end end opts.on_tail("-h", "--help", "Show this message") do puts opts exit