コード例 #1
0
ファイル: cli.py プロジェクト: dragonsvape/letsencrypt
    def add_deprecated_argument(self, argument_name, num_args):
        """Adds a deprecated argument with the name argument_name.

        Deprecated arguments are not shown in the help. If they are used
        on the command line, a warning is shown stating that the
        argument is deprecated and no other action is taken.

        :param str argument_name: Name of deprecated argument.
        :param int nargs: Number of arguments the option takes.

        """
        le_util.add_deprecated_argument(self.parser.add_argument,
                                        argument_name, num_args)
コード例 #2
0
ファイル: cli.py プロジェクト: mantrasuser/letsencrypt
    def add_deprecated_argument(self, argument_name, num_args):
        """Adds a deprecated argument with the name argument_name.

        Deprecated arguments are not shown in the help. If they are used
        on the command line, a warning is shown stating that the
        argument is deprecated and no other action is taken.

        :param str argument_name: Name of deprecated argument.
        :param int nargs: Number of arguments the option takes.

        """
        le_util.add_deprecated_argument(
            self.parser.add_argument, argument_name, num_args)
コード例 #3
0
ファイル: le_util_test.py プロジェクト: nitind/letsencrypt
    def _call(self, argument_name, nargs):
        from letsencrypt.le_util import add_deprecated_argument

        add_deprecated_argument(self.parser.add_argument, argument_name, nargs)
コード例 #4
0
ファイル: le_util_test.py プロジェクト: zhiblin/letsencrypt
    def _call(self, argument_name, nargs):
        from letsencrypt.le_util import add_deprecated_argument

        add_deprecated_argument(self.parser.add_argument, argument_name, nargs)