From 04f6bb38e7bbfb17ee9377168453a443c146c34c Mon Sep 17 00:00:00 2001 From: jiandongzhu Date: Mon, 2 Jul 2018 17:39:37 +0800 Subject: [PATCH 1/2] translating by hoppipolla- --- sources/tech/20180530 3 Python command-line tools.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/tech/20180530 3 Python command-line tools.md b/sources/tech/20180530 3 Python command-line tools.md index 6aad040b71..4db6ac3a85 100644 --- a/sources/tech/20180530 3 Python command-line tools.md +++ b/sources/tech/20180530 3 Python command-line tools.md @@ -1,3 +1,4 @@ +translating----hoppipolla- 3 Python command-line tools ====== @@ -70,7 +71,7 @@ Hello Lacey! `help` and `version` flags. -Docopt is very particular about how you format the required docstring at the top of your file. The top element in your docstring after the name of your tool must be "Usage," and it should list the ways you expect your command to be called (e.g., by itself, with arguments, etc.). Usage should includeandflags. +Docopt is very particular about how you format the required docstring at the top of your file. The top element in your docstring after the name of your tool must be "Usage," and it should list the ways you expect your command to be called (e.g., by itself, with arguments, etc.). Usage should include **help** and **version** flags. The second element in your docstring should be "Options," and it should provide more information about the options and arguments you identified in "Usage." The content of your docstring becomes the content of your help text. ``` From 070c2b5ad18514b1e482dd17424407ee01f071de Mon Sep 17 00:00:00 2001 From: jiandongzhu Date: Mon, 2 Jul 2018 19:38:42 +0800 Subject: [PATCH 2/2] retrive to old file --- sources/tech/20180530 3 Python command-line tools.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/tech/20180530 3 Python command-line tools.md b/sources/tech/20180530 3 Python command-line tools.md index 4db6ac3a85..2068966828 100644 --- a/sources/tech/20180530 3 Python command-line tools.md +++ b/sources/tech/20180530 3 Python command-line tools.md @@ -71,7 +71,7 @@ Hello Lacey! `help` and `version` flags. -Docopt is very particular about how you format the required docstring at the top of your file. The top element in your docstring after the name of your tool must be "Usage," and it should list the ways you expect your command to be called (e.g., by itself, with arguments, etc.). Usage should include **help** and **version** flags. +Docopt is very particular about how you format the required docstring at the top of your file. The top element in your docstring after the name of your tool must be "Usage," and it should list the ways you expect your command to be called (e.g., by itself, with arguments, etc.). Usage should includeandflags. The second element in your docstring should be "Options," and it should provide more information about the options and arguments you identified in "Usage." The content of your docstring becomes the content of your help text. ```