INSTALL: % gem install args_parser SYNOPSIS: % ruby samples/download_webpage.rb --url http://example.com -o out.html parse ARGV require 'rubygems' require 'args_parser' args = ArgsParser.parse ARGV do arg :url, 'URL', :alias => :u arg :output, 'output file', :alias => :o, :default => 'out.html' arg :verbose, 'verbose mode' arg :help, 'show help', :alias => :h filter :url do |v| v.to_s.strip end va
{{#tags}}- {{label}}
{{/tags}}