File tree 1 file changed +8
-2
lines changed
Filter options
1 file changed +8
-2
lines changed
Original file line number Diff line number Diff line change @@ -1246,11 +1246,11 @@ msgstr ""
1246
1246
1247
1247
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:906
1248
1248
msgid "To define an option with only a short option string::"
1249
- msgstr ""
1249
+ msgstr "定义只有一个短选项字符串的选项:: "
1250
1250
1251
1251
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:910
1252
1252
msgid "And to define an option with only a long option string::"
1253
- msgstr ""
1253
+ msgstr "以及定义只有一个长选项字符串的选项:: "
1254
1254
1255
1255
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:914
1256
1256
msgid ""
@@ -1260,13 +1260,19 @@ msgid ""
1260
1260
"irrelevant option attributes, or fail to pass required ones, :mod:`optparse`"
1261
1261
" raises an :exc:`OptionError` exception explaining your mistake."
1262
1262
msgstr ""
1263
+ "该关键字参数定义新 Option 对象的属性。 最重要的选项属性是 "
1264
+ ":attr:`~Option.action`,它主要负责确定其他的属性是相关的还是必须的。 "
1265
+ "如果你传入了不相关的选项属性,或是未能传入必须的属性,:mod:`optparse` 将引发一个 :exc:`OptionError` "
1266
+ "异常来说明你的错误。"
1263
1267
1264
1268
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:920
1265
1269
msgid ""
1266
1270
"An option's *action* determines what :mod:`optparse` does when it encounters"
1267
1271
" this option on the command-line. The standard option actions hard-coded "
1268
1272
"into :mod:`optparse` are:"
1269
1273
msgstr ""
1274
+ "选项的 *action* 决定当 :mod:`optparse` 在命令行中遇到该选项时要做什么。 硬编码在 :mod:`optparse` "
1275
+ "中的标准选项动作有:"
1270
1276
1271
1277
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:925
1272
1278
msgid "``\" store\" ``"
You can’t perform that action at this time.
0 commit comments