module Broadchat::CLI

Overview

Broadchat::CLI reads command-line arguments and executes the program.

Defined in:

main.cr

Constant Summary

DEFAULT_BCAST_ADDR = "192.168.1.255"

Default broadcast address.

DEFAULT_BCAST_PORT = 6667

Default broadcast port.

Class Method Summary

Class Method Detail

def self.exit_with(*messages) #

Prints all messages to console and shut the program down


[View source]
def self.main(args = ARGV.clone) #

Starts the program


[View source]
def self.parse(args) #

Parses command-line arguments. If no --bcast argument is given, it will look for "BCAST_ADDR" in the environment variables


[View source]