src/orion/core/io/cmdline_parser.py
def format(self, configuration):
        """Format the current template.

        Return a list of string where the arguments have been given the values inside
        the `configuration` argument.

        Parameters
        ----------
        configuration : dict
            Dictionary containing the keys and values for each argument of the commandline.

        Returns
        -------
        list
            A list ressembling the one given to the `parse` method but with values of
            `configuration`.

        """
        # Arguments with spaces are broken if we use ' '.join(template).format().split(' ').
        # Hence we iterate over the list as-is and format on each item separately.
        formatted = []
        for item in self.template:
            if item.startswith("-"):
                formatted.append(item)
            else:
                formatted.append(item.format(**configuration))

        return formatted
Format the current template.

        Return a list of string where the arguments have been given the values inside
        the `configuration` argument.

        Parameters
        ----------
        configuration : dict
            Dictionary containing the keys and values for each argument of the commandline.

        Returns
        -------
        list
            A list ressembling the one given to the `parse` method but with values of
            `configuration`.

        
Format the current template.
Return a list of string where the arguments have been given the values inside
the `configuration` argument.

Parameters

configuration : dict
Dictionary containing the keys and values for each argument of the commandline.

Returns

list
A list ressembling the one given to the `parse` method but with values of
`configuration`.
Format the current template . Return a list of string where the arguments have been given the values inside the ` configuration ` argument . Parameters configuration : dict Dictionary containing the keys and values for each argument of the commandline . Returns list A list ressembling the one given to the ` parse ` method but with values of ` configuration ` .
def format(self, configuration):
        formatted = []
        for item in self.template:
            if item.startswith("-"):
                formatted.append(item)
            else:
                formatted.append(item.format(**configuration))
        return formatted
def format ( self , configuration ) : formatted = [ ] for item in self . template : if item . startswith ( "-" ) : formatted . append ( item ) else : formatted . append ( item . format ( ** configuration ) ) return formatted
Format the current template.
Format the current template .
"""Format the current template.

        Return a list of string where the arguments have been given the values inside
        the `configuration` argument.

        Parameters
        ----------
        configuration : dict
            Dictionary containing the keys and values for each argument of the commandline.

        Returns
        -------
        list
            A list ressembling the one given to the `parse` method but with values of
            `configuration`.

        """ # Arguments with spaces are broken if we use ' '.join(template).format().split(' '). # Hence we iterate over the list as-is and format on each item separately.
self
configuration