Nmap Development mailing list archives

Re: implementation of function


From: David Fifield <david () bamsoftware com>
Date: Wed, 31 Mar 2010 09:58:01 -0600

On Wed, Mar 31, 2010 at 09:17:52PM +0530, kirubakaran S wrote:
Hi dev,
    I am looking for extracting the arguments
of script to implement script selection interface for Gsoc-10.
I cannot locate the implementation of "getopt_long_only" funcation
and what it does? can anyone tell me where this function is
implemented?

getopt_long_only is part of the C library.

http://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html

Script argument parsing is done in nse_main.lua. But if you're trying to
extract the arguments supported by a script, you should be looking at
the @args sections in script source code.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: