config.rb
# 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\tList of devices to configure (file)."
  puts "\t-c --config\t\t\tConfiguration file to commit."
  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"
  puts "* If you have spaces in the path to your file(s), please enclose them in quotes \"\".\n\n"
  exit
end
def usage ( ) puts "\nUsage: #{File.basename($0)}" puts "\t-d --device\t\t\tList of devices to configure (file)." puts "\t-c --config\t\t\tConfiguration file to commit." 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" puts "* If you have spaces in the path to your file(s), please enclose them in quotes \"\".\n\n" exit end
Print out the usage if there is no argument given.
Print out the usage if there is no argument given .