Branch: Tag:

2001-10-08

2001-10-08 13:53:52 by Tomas Nilsson <tomas@roxen.com>

New option: --offline, disables DNS and some other code (e.g., most content boxe
s in the configuration interface)

Rev: server/tools/ntroxen/startdll/cmdline.cpp:1.12
Rev: server/tools/ntroxen/version.h:1.11

1:   // cmdline.cpp: implementation of the CCmdLine class.   // - // $Id: cmdline.cpp,v 1.11 2001/10/02 12:48:37 tomas Exp $ + // $Id: cmdline.cpp,v 1.12 2001/10/08 13:53:52 tomas Exp $   //   //////////////////////////////////////////////////////////////////////   
370:    " .B--removeB.: Remove all registry setting and uninstall",    " the NT service.",    "", +  " .B--offlineB.: Indicate that there is no network", +  " connection available. Disables DNS and some", +  " other similar things.", +  "",    " .B--remove-dumpedB.: Remove all dumped code, thus forcing",    " a recompile.",    "",
955:    return 1;    }    +  //'--offline') +  // DEFINES="-DNO_DNS -DOFFLINE $DEFINES" +  if (Match(*argv, "--offline", NULL, NULL) ) +  { +  m_saPikeDefines.Add("-DNO_DNS"); +  m_saPikeDefines.Add("-DOFFLINE"); +  type = eArgPike; +  return 1; +  } +     //'--without-ram-cache'|'--disable-ram-cache')    // DEFINES="`echo $DEFINES | sed -e 's/-DRAM_CACHE//g'`"    if (Match(*argv, "--without-ram-cache", NULL, NULL) ||