Sha256: 1b98a1e088948dad21cd4e505caf85a627eefddedaeee36c20bfab0133dc8f01
Contents?: true
Size: 468 Bytes
Versions: 68
Compression:
Stored size: 468 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'optparse' require 'cgi' opts = {} OptionParser.new do |options| options.banner = "USAGE: #{File.basename($PROGRAM_NAME)} [opts] " options.on('-pSTRING', '--payload=STRING', '<Required - String to Encode>') do |p| opts[:payload] = p end end.parse! if opts.empty? puts `#{File.basename($PROGRAM_NAME)} --help` exit 1 end payload = opts[:payload].to_s.scrub puts CGI.escapeHTML(payload)
Version data entries
68 entries across 68 versions & 1 rubygems