| 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "tools/gn/commands.h" | 8 #include "tools/gn/commands.h" |
| 9 #include "tools/gn/err.h" | 9 #include "tools/gn/err.h" |
| 10 #include "tools/gn/location.h" | 10 #include "tools/gn/location.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (found_command != command_map.end()) { | 71 if (found_command != command_map.end()) { |
| 72 retval = found_command->second.runner(args); | 72 retval = found_command->second.runner(args); |
| 73 } else { | 73 } else { |
| 74 Err(Location(), | 74 Err(Location(), |
| 75 "Command \"" + command + "\" unknown.").PrintToStdout(); | 75 "Command \"" + command + "\" unknown.").PrintToStdout(); |
| 76 commands::RunHelp(std::vector<std::string>()); | 76 commands::RunHelp(std::vector<std::string>()); |
| 77 retval = 1; | 77 retval = 1; |
| 78 } | 78 } |
| 79 | 79 |
| 80 exit(retval); // Don't free memory, it can be really slow! | 80 exit(retval); // Don't free memory, it can be really slow! |
| 81 return retval; | |
| 82 } | 81 } |
| OLD | NEW |