@@ -2571,6 +2571,10 @@ msgid ""
25712571" by :meth:`OptionParser.parse_args`, or be passed to a callback as the "
25722572"``value`` parameter."
25732573msgstr ""
2574+ "其中 ``option`` 是一个 :class:`Option` 实例,``opt`` 是一个选项字符串 (例如 ``-f``),而 "
2575+ "``value`` 是来自命令行的必须被检查并转换为你想要的类型的字符串。 ``check_mytype()`` 应当返回假设的类型 "
2576+ "``mytype`` 的对象。 类型检查函数所返回的值将最终出现在 :meth:`OptionParser.parse_args` 所返回的 "
2577+ "OptionValues 实例中,或是作为 ``value`` 形参传给一个回调。"
25742578
25752579#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1878
25762580msgid ""
@@ -2581,6 +2585,9 @@ msgid ""
25812585"``\" error:\" `` and prints everything to stderr before terminating the "
25822586"process."
25832587msgstr ""
2588+ "如果你的类型检查函数遇到任何问题则应当引发 :exc:`OptionValueError`。 :exc:`OptionValueError` "
2589+ "接受一个字符串参数,该参数将被原样传递给 :class:`OptionParser` 的 :meth:`error` "
2590+ "方法,该方法将随后附加程序名称和字符串 ``\" error:\" `` 并在终结进程之前将所有信息打印到 stderr。"
25842591
25852592#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1884
25862593msgid ""