def add_option(self, name, value=None, nargs=None, hidden=True,
                   type=TYPE_OPTION, **kwargs):
        if nargs is None:
            nargs = 1
            if value is not None:
                # catch boolean and list cases
                if isinstance(value, bool):
                    nargs = 0
                elif isinstance(value, (list, tuple)):
                    nargs = "*"
        default = kwargs.get('default', None)
        if 'default' in kwargs:
            del kwargs['default']
        if not hidden and kwargs.get('default', None) is None and \
           value is not None:
            ## flip default and value for non hidden options
            default = value
            value = None

        option = Option(
            name,
            option_type=kwargs.get('option_type', type),
            default=default,
            nargs=nargs,
            hidden=hidden,
            **kwargs
        )
        option.source = self.source
        try:
            source_index = self.options.index(option)
        except:
            source_index = -1

        if source_index < 0:
            self.options.append(option)
        else:
            option = self.options[source_index]

        option = self.options[source_index]
        if value is not None:
            option.set(value)
        return option
Get the contents of the fio job file we're working with.
dataset/ETHPy150Open thasso/pyjip/jip/options.py/Options.add_option--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/fio_benchmark.py/GetOrGenerateJobFileString