module Broadchat::CLI
Overview
Broadchat::CLI reads command-line arguments and executes the program.
Defined in:
main.crConstant Summary
-
DEFAULT_BCAST_ADDR =
"192.168.1.255" -
Default broadcast address.
-
DEFAULT_BCAST_PORT =
6667 -
Default broadcast port.
Class Method Summary
-
.exit_with(*messages)
Prints all
messagesto console and shut the program down -
.main(args = ARGV.clone)
Starts the program
-
.parse(args)
Parses command-line arguments.
Class Method Detail
def self.parse(args)
#
Parses command-line arguments. If no --bcast argument is given, it will look for "BCAST_ADDR" in the environment variables