| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * The main entrypoint for the pub command line application. | 6 * The main entrypoint for the pub command line application. |
| 7 */ | 7 */ |
| 8 #library('pub'); | 8 #library('pub'); |
| 9 | 9 |
| 10 #import('../../pkg/args/args.dart'); | 10 #import('../../pkg/args/lib/args.dart'); |
| 11 #import('dart:io'); | 11 #import('dart:io'); |
| 12 #import('dart:math'); | 12 #import('dart:math'); |
| 13 #import('io.dart'); | 13 #import('io.dart'); |
| 14 #import('command_help.dart'); | 14 #import('command_help.dart'); |
| 15 #import('command_install.dart'); | 15 #import('command_install.dart'); |
| 16 #import('command_list.dart'); | 16 #import('command_list.dart'); |
| 17 #import('command_update.dart'); | 17 #import('command_update.dart'); |
| 18 #import('command_version.dart'); | 18 #import('command_version.dart'); |
| 19 #import('entrypoint.dart'); | 19 #import('entrypoint.dart'); |
| 20 #import('git_source.dart'); | 20 #import('git_source.dart'); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 print(''); | 231 print(''); |
| 232 print('Usage: $usage'); | 232 print('Usage: $usage'); |
| 233 | 233 |
| 234 var commandUsage = commandParser.getUsage(); | 234 var commandUsage = commandParser.getUsage(); |
| 235 if (!commandUsage.isEmpty()) { | 235 if (!commandUsage.isEmpty()) { |
| 236 print(''); | 236 print(''); |
| 237 print(commandUsage); | 237 print(commandUsage); |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 } | 240 } |
| OLD | NEW |