Example #1
0
    def add_file_option(self, *args, **kwargs):
        """.. deprecated:: 0.6.0

        Like :py:meth:`add_file_arg` except that it emulates the
        old :py:mod:`optparse` interface (which is almost identical).
        """
        log.warning('add_file_option() is deprecated and will be removed in'
                    ' v0.7.0. Use add_file_arg() instead.')

        self.add_file_arg(*args, **_optparse_kwargs_to_argparse(**kwargs))
Example #2
0
File: launch.py Project: stug/mrjob
    def add_file_option(self, *args, **kwargs):
        """.. deprecated:: 0.6.0

        Like :py:meth:`add_file_arg` except that it emulates the
        old :py:mod:`optparse` interface (which is almost identical).

        .. versionchanged:: 0.6.6

           accepts ``type='str'`` (used to only accept ``type='string'``)
        """
        log.warning('add_file_option() is deprecated and will be removed in'
                    ' v0.7.0. Use add_file_arg() instead.')

        self.add_file_arg(*args, **_optparse_kwargs_to_argparse(**kwargs))
Example #3
0
File: launch.py Project: Yelp/mrjob
    def add_passthrough_option(self, *args, **kwargs):
        """.. deprecated:: 0.6.0

        Like :py:meth:`add_passthru_arg` except that it emulates the
        old :py:mod:`optparse` interface (which is almost identical).

        .. versionchanged:: 0.6.6

           accepts ``type='str'`` (used to only accept ``type='string'``)
        """
        log.warning(
            'add_passthrough_option() is deprecated and will be removed in'
            ' v0.7.0. Use add_passthru_arg() instead.')

        self.add_passthru_arg(*args, **_optparse_kwargs_to_argparse(**kwargs))