Skip to content

Instantly share code, notes, and snippets.

@nuke99
Created June 11, 2012 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuke99/2912405 to your computer and use it in GitHub Desktop.
Save nuke99/2912405 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'optparse'
OptionParser.new do |op|
op.on('-h') {|h| $host = h}
op.on('-i') {|h| $inj = h}
op.on('-h') { puts o; exit }
end
if $host and $inj
puts $host
else
puts "Please Enter -h for more infomation"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment