ipsec-info.rb
def usage()
  puts "\nUsage: #{File.basename($0)}"
  puts "\t-d --device\t\t\tDevice hostname or IP."  
  puts "\t-u --username\t\t\tSSH username."
  puts "\t-p --password\t\t\t(Optional) SSH password."
  puts "\t-h --help\t\t\tDisplay the usage.\n\n"
  exit
end
# Print out the usage if there is no argument given.
Print out the usage if there is no argument given.
Print out the usage if there is no argument given .
def usage()
  puts "\nUsage: #{File.basename($0)}"
  puts "\t-d --device\t\t\tDevice hostname or IP."  
  puts "\t-u --username\t\t\tSSH username."
  puts "\t-p --password\t\t\t(Optional) SSH password."
  puts "\t-h --help\t\t\tDisplay the usage.\n\n"
  exit
end
def usage ( ) puts "\nUsage: #{File.basename($0)}" puts "\t-d --device\t\t\tDevice hostname or IP." puts "\t-u --username\t\t\tSSH username." puts "\t-p --password\t\t\t(Optional) SSH password." puts "\t-h --help\t\t\tDisplay the usage.\n\n" exit end
Print out the usage if there is no argument given.
Print out the usage if there is no argument given .