function option_arg_parse(name) {
  var arg = args[arg_num];
  match = option_match(name, true, arg);
  if (!match) return false;

  if (typeof match != 'string') {
    if (arg_num + 1 < args.length) {
      arg_num++;
      match = args[arg_num];
    }
    else {
      phantom.exit(1);
    }
  }

  if (name == 'port') {
      port = match - 0;
  }
  else if (name == 'requests') { requests_to_serve = match - 0; }
  else if (name == 'mathjax') { mathjax_url = match; }

  arg_num++;
  return true;
}
// This helper handles one option that takes an option-argument
This helper handles one option that takes an option-argument
This helper handles one option that takes an option - argument
function option_arg_parse(name) {
  var arg = args[arg_num];
  match = option_match(name, true, arg);
  if (!match) return false;
  if (typeof match != 'string') {
    if (arg_num + 1 < args.length) {
      arg_num++;
      match = args[arg_num];
    }
    else {
      phantom.exit(1);
    }
  }
  if (name == 'port') {
      port = match - 0;
  }
  else if (name == 'requests') { requests_to_serve = match - 0; }
  else if (name == 'mathjax') { mathjax_url = match; }
  arg_num++;
  return true;
}
function option_arg_parse ( name ) { var arg = args [ arg_num ] ; match = option_match ( name , true , arg ) ; if ( ! match ) return false ; if ( typeof match != 'string' ) { if ( arg_num + 1 < args . length ) { arg_num ++ ; match = args [ arg_num ] ; } else { phantom . exit ( 1 ) ; } } if ( name == 'port' ) { port = match - 0 ; } else if ( name == 'requests' ) { requests_to_serve = match - 0 ; } else if ( name == 'mathjax' ) { mathjax_url = match ; } arg_num ++ ; return true ; }
This helper handles one option that takes an option-argument
This helper handles one option that takes an option - argument