parameters: (self, *args, **kw)
return_statement: return result
docstring: Adds a local option to the parser.
  
          This is initiated by an AddOption() call to add a user-defined
          command-line option.  We add the option to a separate option
          group for the local options, creating the group if necessary.
docstring_summary: Adds a local option to the parser.
docstring_tokens: Adds a local option to the parser .
function: def add_local_option(self, *args, **kw):
          """
          Adds a local option to the parser.
  
          This is initiated by an AddOption() call to add a user-defined
          command-line option.  We add the option to a separate option
          group for the local options, creating the group if necessary.
          """
          try:
              group = self.local_option_group
          except AttributeError:
              group = SConsOptionGroup(self, 'Local Options')
              group = self.add_option_group(group)
              self.local_option_group = group
  
          result = group.add_option(*args, **kw)
  
          if result:
              # The option was added successfully.  We now have to add the
              # default value to our object that holds the default values
              # (so that an attempt to fetch the option's attribute will
              # yield the default value when not overridden) and then
              # we re-parse the leftover command-line options, so that
              # any value overridden on the command line is immediately
              # available if the user turns around and does a GetOption()
              # right away.
              setattr(self.values.__defaults__, result.dest, result.default)
              self.reparse_local_options()
  
          return result
function_tokens: def add_local_option ( self , * args , * * kw ) : try : group = self . local_option_group except AttributeError : group = SConsOptionGroup ( self , 'Local Options' ) group = self . add_option_group ( group ) self . local_option_group = group result = group . add_option ( * args , * * kw ) if result : # The option was added successfully.  We now have to add the # default value to our object that holds the default values # (so that an attempt to fetch the option's attribute will # yield the default value when not overridden) and then # we re-parse the leftover command-line options, so that # any value overridden on the command line is immediately # available if the user turns around and does a GetOption() # right away. setattr ( self . values . __defaults__ , result . dest , result . default ) self . reparse_local_options ( ) return result