NodeServer.args

Gets the arguments the server has been launched with, excluding the ones used by sel or the manager.

class NodeServer
shared pure nothrow @property @safe @nogc const
args
()

Examples

// from command-line
./node --name=test -a -b -p=test
assert(server.args == ["-a", "-b"]);

// from sel manager
sel start test --name=test -a --loop -b
assert(server.args == ["-a", "-b"]);

Custom arguments can be used by plugins to load optional settings.

@start load() {
   if(!server.args.canFind("--disable-example")) {
      this.loadImpl();
   }
}

Meta