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" |
11 #include "tools/gn/file_template.h" | |
12 #include "tools/gn/functions.h" | 11 #include "tools/gn/functions.h" |
13 #include "tools/gn/input_conversion.h" | 12 #include "tools/gn/input_conversion.h" |
14 #include "tools/gn/pattern.h" | 13 #include "tools/gn/pattern.h" |
15 #include "tools/gn/setup.h" | 14 #include "tools/gn/setup.h" |
16 #include "tools/gn/standard_out.h" | 15 #include "tools/gn/standard_out.h" |
16 #include "tools/gn/substitution_writer.h" | |
scottmg
2014/08/05 22:30:32
necessary?
brettw
2014/08/06 18:25:01
Yeah, the help text for substitutions is in that f
| |
17 #include "tools/gn/variables.h" | 17 #include "tools/gn/variables.h" |
18 | 18 |
19 namespace commands { | 19 namespace commands { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 void PrintToplevelHelp() { | 23 void PrintToplevelHelp() { |
24 OutputString("Commands (type \"gn help <command>\" for more details):\n"); | 24 OutputString("Commands (type \"gn help <command>\" for more details):\n"); |
25 | 25 |
26 const commands::CommandInfoMap& command_map = commands::GetCommands(); | 26 const commands::CommandInfoMap& command_map = commands::GetCommands(); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 return 0; | 175 return 0; |
176 } | 176 } |
177 | 177 |
178 // No help on this. | 178 // No help on this. |
179 Err(Location(), "No help on \"" + args[0] + "\".").PrintToStdout(); | 179 Err(Location(), "No help on \"" + args[0] + "\".").PrintToStdout(); |
180 RunHelp(std::vector<std::string>()); | 180 RunHelp(std::vector<std::string>()); |
181 return 1; | 181 return 1; |
182 } | 182 } |
183 | 183 |
184 } // namespace commands | 184 } // namespace commands |
OLD | NEW |