@@ -1937,31 +1937,36 @@ msgid ""
19371937"restores traditional Unix syntax, where option parsing stops with the first "
19381938"non-option argument."
19391939msgstr ""
1940+ "要禁用此特性,则调用 :meth:`disable_interspersed_args`。 这将恢复传统的 Unix "
1941+ "语法,其中选项解析会在第一个非选项参数处停止。"
19401942
19411943#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1383
19421944msgid ""
19431945"Use this if you have a command processor which runs another command which "
19441946"has options of its own and you want to make sure these options don't get "
19451947"confused. For example, each command might have a different set of options."
19461948msgstr ""
1949+ "如果你用一个命令处理程序来运行另一个拥有它自己的选项的命令而你希望参确保这些选项不会被混淆就可以使用此方法。 例如,每个命令可能具有不同的选项集合。"
19471950
19481951#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1389
19491952msgid ""
19501953"Set parsing to not stop on the first non-option, allowing interspersing "
19511954"switches with command arguments. This is the default behavior."
1952- msgstr ""
1955+ msgstr "设置解析不在第一个非选项处停止,允许多个命令行参数的插入相互切换。 这是默认的行为。 "
19531956
19541957#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1394
19551958msgid ""
19561959"Returns the Option instance with the option string *opt_str*, or ``None`` if"
19571960" no options have that option string."
1958- msgstr ""
1961+ msgstr "返回具有选项字符串 *opt_str* 的的 Option 实例,或者如果不存在具有该选项字符串的选项则返回 ``None``。 "
19591962
19601963#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1399
19611964msgid ""
19621965"Return ``True`` if the OptionParser has an option with option string "
19631966"*opt_str* (e.g., ``-q`` or ``--verbose``)."
19641967msgstr ""
1968+ "如果 OptionParser 包含一个具有选项字符串 *opt_str* 的选项 (例如 ``-q`` 或 ``--verbose``) 则返回 "
1969+ "``True``。"
19651970
19661971#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1404
19671972msgid ""
@@ -1970,22 +1975,25 @@ msgid ""
19701975" those option strings become invalid. If *opt_str* does not occur in any "
19711976"option belonging to this :class:`OptionParser`, raises :exc:`ValueError`."
19721977msgstr ""
1978+ "如果 :class:`OptionParser` 包含一个对应于 *opt_str* 的选项,则移除该选项。 "
1979+ "如果该选项提供了任何其他选项字符串,这些选项字符串将全部不可用。 如果 *opt_str* 不存在于任何属于此 "
1980+ ":class:`OptionParser` 的选项之中,则会引发 :exc:`ValueError`。"
19731981
19741982#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1413
19751983msgid "Conflicts between options"
1976- msgstr ""
1984+ msgstr "选项之间的冲突 "
19771985
19781986#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1415
19791987msgid ""
19801988"If you're not careful, it's easy to define options with conflicting option "
19811989"strings::"
1982- msgstr ""
1990+ msgstr "如果你不够小心,很容易会定义具有相互冲突的选项字符串的多个选项:: "
19831991
19841992#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1422
19851993msgid ""
19861994"(This is particularly true if you've defined your own OptionParser subclass "
19871995"with some standard options.)"
1988- msgstr ""
1996+ msgstr "(当你自定义具有某些标准选项的 OptionParser 时特别容易发生这种情况。) "
19891997
19901998#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1425
19911999msgid ""
@@ -1994,14 +2002,16 @@ msgid ""
19942002" mechanism. You can set the conflict-handling mechanism either in the "
19952003"constructor::"
19962004msgstr ""
2005+ "每当你添加一个选项时,:mod:`optparse` 会检查它是否与现有选项冲突。 如果发现存在冲突,它将发起调用当前的冲突处理机制。 "
2006+ "你可以选择在构造器中设置冲突处理机制::"
19972007
19982008#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1431
19992009msgid "or with a separate call::"
2000- msgstr ""
2010+ msgstr "或是在单独调用中设置:: "
20012011
20022012#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1435
20032013msgid "The available conflict handlers are:"
2004- msgstr ""
2014+ msgstr "可用的冲突处理句柄有: "
20052015
20062016#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1439
20072017msgid "``\" error\" `` (default)"
@@ -2011,21 +2021,21 @@ msgstr "``\"error\"`` (默认)"
20112021msgid ""
20122022"assume option conflicts are a programming error and raise "
20132023":exc:`OptionConflictError`"
2014- msgstr ""
2024+ msgstr "将选项冲突视为编程错误并引发 :exc:`OptionConflictError` "
20152025
20162026#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1443
20172027msgid "``\" resolve\" ``"
20182028msgstr "``\" resolve\" ``"
20192029
20202030#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1442
20212031msgid "resolve option conflicts intelligently (see below)"
2022- msgstr ""
2032+ msgstr "智能地解决选项冲突(见下文) "
20232033
20242034#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1445
20252035msgid ""
20262036"As an example, let's define an :class:`OptionParser` that resolves conflicts"
20272037" intelligently and add conflicting options to it::"
2028- msgstr ""
2038+ msgstr "举例来说,让我们定义一个智能地解决冲突的 :class:`OptionParser` 并向其添加相互冲突的选项:: "
20292039
20302040#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1452
20312041msgid ""