def parse_args(self, args=None, namespace=None):
assert self.initialized, '<STR_LIT>'<EOL>namespace = self.parser.parse_args(args, namespace)<EOL>handler = self._get_handler(namespace, remove_handler=True)<EOL>if handler:<EOL><INDENT>return handler(**vars(namespace))<EOL><DEDENT>
Parse the command-line arguments and call the associated handler.

        The signature is the same as `argparse.ArgumentParser.parse_args
        <https://docs.python.org/2/library/argparse.html#argparse.ArgumentParser.parse_args>`_.

        Args
        ----
        args : list
            A list of argument strings.  If ``None`` the list is taken from
            ``sys.argv``.
        namespace : argparse.Namespace
            A Namespace instance.  Defaults to a new empty Namespace.

        Returns
        -------
        The return value of the handler called with the populated Namespace as
        kwargs.