#!/usr/bin/env ruby require 'pwm' length = (ARGV[0] || 16).to_i if length < 8 $stderr.puts 'length must be >= 8' exit 1 else puts Pwm.password(length) end