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

Unified Diff: tools/gn/switches.cc

Issue 1024783002: Add a --markdown flag to GN to be able to output help in markdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_all_help
Patch Set: fix dropped variable Created 5 years, 8 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/switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/switches.cc
diff --git a/tools/gn/switches.cc b/tools/gn/switches.cc
index 5e383e1c26fe67fdec0cbe29c5eb4532483c04fb..9b866549375be1f57aa086756bd8ff5852dde98e 100644
--- a/tools/gn/switches.cc
+++ b/tools/gn/switches.cc
@@ -69,6 +69,12 @@ const char kDotfile_Help[] =
" Note that this interacts with \"--root\" in a possibly incorrect way.\n"
" It would be nice to test the edge cases and document or fix.\n";
+const char kMarkdown[] = "markdown";
+const char kMarkdown_HelpShort[] =
+ "--markdown: write the output in the Markdown format.";
+const char kMarkdown_Help[] =
+ "--markdown: write the output in the Markdown format.\n";
+
const char kNoColor[] = "nocolor";
const char kNoColor_HelpShort[] =
"--nocolor: Force non-colored output.";
@@ -184,6 +190,7 @@ const SwitchInfoMap& GetSwitches() {
INSERT_VARIABLE(Args)
INSERT_VARIABLE(Color)
INSERT_VARIABLE(Dotfile)
+ INSERT_VARIABLE(Markdown)
INSERT_VARIABLE(NoColor)
INSERT_VARIABLE(Root)
INSERT_VARIABLE(Quiet)
« no previous file with comments | « tools/gn/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698