getCommandLine
getCommandLine(): String;
The getCommandLine method of the Node class returns a string containing the current command line of the node of the receiver object.
In JADE thin client mode, this method returns the command line file from the application server. (Use
The command line of the specified node instance is returned, which does not have to be the current node. If you require the command line of the current node, use the
The following example shows the use of the getCommandLine method.
vars cmdLine, myOption : String; int : Integer; begin cmdLine := node.getCommandLine; // get command line // look for my command line option ('myOption') int := cmdLine.pos('myOption', 1); if int <> 0 then int := cmdLine.pos('=', int) + 1; // look for '=' // skip any blanks after the '=' cmdLine.scanWhile(' ', int); // return input up to next blank myOption := cmdLine.scanUntil(' ', int); write myOption; endif; end;