Logo Search packages:      
Sourcecode: umit version File versions  Download package

def umitCore::NmapOptions::NmapOptions::get_command_option (   self,
  option,
  args = [] 
)

get_command_option (option, args=[])

Get the command option for the given registered 'option'.
Additional argument 'args' will be merged with the command option
if it is needed. 'args' can be a list of argument (if command option
require more than one argument) or a single argument within a string.

Important: Only give an argument if the command option will use it,
otherwise you'll get an error, trying to merge 'args' with the command
option

Definition at line 47 of file NmapOptions.py.

00047                                                   :
        '''get_command_option (option, args=[])
        
        Get the command option for the given registered 'option'.
        Additional argument 'args' will be merged with the command option
        if it is needed. 'args' can be a list of argument (if command option
        require more than one argument) or a single argument within a string.
        
        Important: Only give an argument if the command option will use it,
        otherwise you'll get an error, trying to merge 'args' with the command
        option
        '''
        if type (args) in StringTypes and args:
            args = [args]
        
        if args:
            args = tuple (args)
            return self.__ga_opt (option, 'option') % args
        else:
            return self.__ga_opt (option, 'option')

    def get_hint (self, option):


Generated by  Doxygen 1.6.0   Back to index