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

Side by Side Diff: tools/gn/command_help.cc

Issue 115323009: Fix help and error messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/command_desc.cc ('k') | tools/gn/filesystem_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <iostream> 6 #include <iostream>
7 7
8 #include "tools/gn/args.h" 8 #include "tools/gn/args.h"
9 #include "tools/gn/commands.h" 9 #include "tools/gn/commands.h"
10 #include "tools/gn/err.h" 10 #include "tools/gn/err.h"
(...skipping 16 matching lines...) Expand all
27 for (commands::CommandInfoMap::const_iterator i = command_map.begin(); 27 for (commands::CommandInfoMap::const_iterator i = command_map.begin();
28 i != command_map.end(); ++i) 28 i != command_map.end(); ++i)
29 PrintShortHelp(i->second.help_short); 29 PrintShortHelp(i->second.help_short);
30 30
31 OutputString( 31 OutputString(
32 "\n" 32 "\n"
33 " When run with no arguments \"gn gen\" is assumed.\n" 33 " When run with no arguments \"gn gen\" is assumed.\n"
34 "\n" 34 "\n"
35 "Common switches:\n"); 35 "Common switches:\n");
36 PrintShortHelp( 36 PrintShortHelp(
37 "--args: Specifies build args overrides. See \"gn help buildargs\"."); 37 "--args: Specifies build arguments overrides. "
38 "See \"gn help buildargs\".");
38 PrintShortHelp( 39 PrintShortHelp(
39 "--no-exec: Skips exec_script calls (for performance testing)."); 40 "--no-exec: Skips exec_script calls (for performance testing).");
40 PrintShortHelp( 41 PrintShortHelp(
41 "-q: Quiet mode, don't print anything on success."); 42 "-q: Quiet mode, don't print anything on success.");
42 PrintShortHelp( 43 PrintShortHelp(
43 "--output: Directory for build output (relative to source root)."); 44 "--output: Directory for build output (relative to source root).");
44 PrintShortHelp( 45 PrintShortHelp(
45 "--root: Specifies source root (overrides .gn file)."); 46 "--root: Specifies source root (overrides .gn file).");
46 PrintShortHelp( 47 PrintShortHelp(
47 "--secondary: Specifies secondary source root (overrides .gn file)."); 48 "--secondary: Specifies secondary source root (overrides .gn file).");
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return 0; 170 return 0;
170 } 171 }
171 172
172 // No help on this. 173 // No help on this.
173 Err(Location(), "No help on \"" + args[0] + "\".").PrintToStdout(); 174 Err(Location(), "No help on \"" + args[0] + "\".").PrintToStdout();
174 RunHelp(std::vector<std::string>()); 175 RunHelp(std::vector<std::string>());
175 return 1; 176 return 1;
176 } 177 }
177 178
178 } // namespace commands 179 } // namespace commands
OLDNEW
« no previous file with comments | « tools/gn/command_desc.cc ('k') | tools/gn/filesystem_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698