def load_config(self, argv=None, aliases=None, flags=None):
self.clear()<EOL>if argv is None:<EOL><INDENT>argv = self.argv<EOL><DEDENT>if aliases is None:<EOL><INDENT>aliases = self.aliases<EOL><DEDENT>if flags is None:<EOL><INDENT>flags = self.flags<EOL><DEDENT>self._create_parser(aliases, flags)<EOL>self._parse_args(argv)<EOL>self._convert_to_config()<EOL>return self.config<EOL>
Parse command line arguments and return as a Config object.

        Parameters
        ----------

        args : optional, list
          If given, a list with the structure of sys.argv[1:] to parse
          arguments from. If not given, the instance's self.argv attribute
          (given at construction time) is used.