unless getopts("b:di:m:nh", "help") error "illegal option specified" end usage if $OPT_h initialization $do_not_run_but_trace = true if $OPT_n $broadcast_ip_address = $OPT_b if $OPT_b if not $broadcast_ip_address error "broadcast address not specifed" end $delayed_statup = true if $OPT_d $intervaltime = $OPT_i if $OPT_i $number_of_wakeup_machines = $OPT_m if $OPT_m specified_hosts = ARGV if not ARGV.empty?
なかんじ