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