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('../../lib/args/args.dart'); | 10 #import('../../pkg/args/args.dart'); |
11 #import('dart:io'); | 11 #import('dart:io'); |
12 #import('io.dart'); | 12 #import('io.dart'); |
13 #import('command_help.dart'); | 13 #import('command_help.dart'); |
14 #import('command_install.dart'); | 14 #import('command_install.dart'); |
15 #import('command_list.dart'); | 15 #import('command_list.dart'); |
16 #import('command_update.dart'); | 16 #import('command_update.dart'); |
17 #import('command_version.dart'); | 17 #import('command_version.dart'); |
18 #import('entrypoint.dart'); | 18 #import('entrypoint.dart'); |
19 #import('git_source.dart'); | 19 #import('git_source.dart'); |
20 #import('package.dart'); | 20 #import('package.dart'); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 print(''); | 227 print(''); |
228 print('Usage: $usage'); | 228 print('Usage: $usage'); |
229 | 229 |
230 var commandUsage = commandParser.getUsage(); | 230 var commandUsage = commandParser.getUsage(); |
231 if (!commandUsage.isEmpty()) { | 231 if (!commandUsage.isEmpty()) { |
232 print(''); | 232 print(''); |
233 print(commandUsage); | 233 print(commandUsage); |
234 } | 234 } |
235 } | 235 } |
236 } | 236 } |
OLD | NEW |