OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |