@@ -292,6 +292,8 @@ msgid ""
292
292
"of information that your program absolutely requires in order to run "
293
293
"successfully, that's what positional arguments are for."
294
294
msgstr ""
295
+ "有很多人希望他们的程序具有“必需选项”。 请再思考一下。 如果某个项是必需的,那么它就 *不是可选的*! "
296
+ "如果你的程序必需要有某项信息才能成功运行,则它更适合作为位置参数。"
295
297
296
298
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:200
297
299
msgid ""
@@ -301,6 +303,8 @@ msgid ""
301
303
"``cp`` fails if you run it with no arguments. However, it has a flexible, "
302
304
"useful syntax that does not require any options at all::"
303
305
msgstr ""
306
+ "作为良好的命令行界面设计的一个例子,请看基本的用于拷贝文件的 ``cp`` 工具。 试图拷贝文件而不提供一个目标和至少一个源是没有什么意义的。 "
307
+ "因此,如果你不带参数地运行 ``cp`` 它将会报错。 不过,它具有一个完全不需要任何选项的灵活、易用的语法::"
304
308
305
309
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:209
306
310
msgid ""
@@ -311,6 +315,9 @@ msgid ""
311
315
"mission of ``cp``, which is to copy either one file to another, or several "
312
316
"files to another directory."
313
317
msgstr ""
318
+ "你只使用这个语法就能畅行无阻。 大多数 ``cp`` "
319
+ "实现还提供了许多精确调整文件拷贝方式的选项:你可以保留模式和修改时间,避免跟随符号链接,覆盖现有文件之前先询问,诸如此类。 但这些都不会破坏 "
320
+ "``cp`` 的核心任务,即将一个文件拷贝为另一个文件,或将多个文件拷贝到另一个目录。"
314
321
315
322
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:220
316
323
msgid "What are positional arguments for?"
0 commit comments