parameters: (self, args=None, values=None)
return_statement: return self.check_values(values, args)
docstring: parse_args(args : [string] = sys.argv[1:],
                     values : Values = None)
          -> (values : Values, args : [string])
  
          Parse the command-line options found in 'args' (default:
          sys.argv[1:]).  Any errors result in a call to 'error()', which
          by default prints the usage message to stderr and calls
          sys.exit() with an error message.  On success returns a pair
          (values, args) where 'values' is a Values instance (with all
          your option values) and 'args' is the list of arguments left
          over after parsing options.
docstring_summary: parse_args(args : [string] = sys.argv[1:],
                     values : Values = None)
          -> (values : Values, args : [string])
docstring_tokens: parse_args ( args : [ string ] = sys . argv [ 1 : ] values : Values = None ) - > ( values : Values args : [ string ] )
function: def parse_args(self, args=None, values=None):
          """
          parse_args(args : [string] = sys.argv[1:],
                     values : Values = None)
          -> (values : Values, args : [string])
  
          Parse the command-line options found in 'args' (default:
          sys.argv[1:]).  Any errors result in a call to 'error()', which
          by default prints the usage message to stderr and calls
          sys.exit() with an error message.  On success returns a pair
          (values, args) where 'values' is a Values instance (with all
          your option values) and 'args' is the list of arguments left
          over after parsing options.
          """
          rargs = self._get_args(args)
          if values is None:
              values = self.get_default_values()
  
          # Store the halves of the argument list as attributes for the
          # convenience of callbacks:
          #   rargs
          #     the rest of the command-line (the "r" stands for
          #     "remaining" or "right-hand")
          #   largs
          #     the leftover arguments -- ie. what's left after removing
          #     options and their arguments (the "l" stands for "leftover"
          #     or "left-hand")
          self.rargs = rargs
          self.largs = largs = []
          self.values = values
  
          try:
              stop = self._process_args(largs, rargs, values)
          except (BadOptionError, OptionValueError) as err:
              self.error(str(err))
  
          args = largs + rargs
          return self.check_values(values, args)
function_tokens: def parse_args ( self , args = None , values = None ) : rargs = self . _get_args ( args ) if values is None : values = self . get_default_values ( ) # Store the halves of the argument list as attributes for the # convenience of callbacks: #   rargs #     the rest of the command-line (the "r" stands for #     "remaining" or "right-hand") #   largs #     the leftover arguments -- ie. what's left after removing #     options and their arguments (the "l" stands for "leftover" #     or "left-hand") self . rargs = rargs self . largs = largs = [ ] self . values = values try : stop = self . _process_args ( largs , rargs , values ) except ( BadOptionError , OptionValueError ) as err : self . error ( str ( err ) ) args = largs + rargs return self . check_values ( values , args )