Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: tools/gn/docs/reference.md

Issue 1841013003: Update GN documentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/docs/language.md ('k') | tools/gn/docs/style_guide.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/docs/reference.md
diff --git a/tools/gn/docs/reference.md b/tools/gn/docs/reference.md
index f136a97b336024b47e16124c5f22d67bc6f65e93..70cc6b3a65b675d06f0451c73a6ecd153321570b 100644
--- a/tools/gn/docs/reference.md
+++ b/tools/gn/docs/reference.md
@@ -682,10 +682,29 @@
```
## **gn help <anything>**
+
```
Yo dawg, I heard you like help on your help so I put help on the help
in the help.
+ You can also use "all" as the parameter to get all help at once.
+
+```
+
+### **Switches**
+
+```
+ --markdown
+ Format output in markdown syntax.
+
+```
+
+### **Example**
+
+```
+ gn help --markdown all
+ Dump all help to stdout in markdown format.
+
```
## **gn ls <out_dir> [<label_pattern>] [\--all-toolchains] [\--as=...]**
@@ -1592,7 +1611,8 @@
}
Executes the loop contents block over each item in the list,
- assigning the loop_var to each item in sequence.
+ assigning the loop_var to each item in sequence. The loop_var will be
+ a copy so assigning to it will not mutate the list.
The block does not introduce a new scope, so that variable assignments
inside the loop will be visible once the loop terminates.
« no previous file with comments | « tools/gn/docs/language.md ('k') | tools/gn/docs/style_guide.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698