docs: function populateDirectArguments(errstream, options, env) {
      var u, p;
  
      if (options.host === undefined || options.port === undefined) {
          /*
           * The user specified one of -h/--host and -p/--port, but not the other.
           */
          if (env['MORAY_URL']) {
              u = url.parse(env['MORAY_URL']);
              if (options.host === undefined) {
                  options.host = u['hostname'];
              }
  
              if (options.port === undefined && u['port'] !== null) {
                  p = parseTcpPort(u['port']);
                  if (p === null) {
                      fprintf(errstream,
                          'port in MORAY_URL is not a valid TCP port\n');
                      return (false);
                  }
  
                  options.port = p;
              }
          }
  
          if (options.host === undefined) {
              options.host = '127.0.0.1';
          }
  
          if (options.port === undefined) {
              options.port = 2020;
          }
      }
  
      return (true);
  }