Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/build.dart

Issue 805393002: Update pub to use the new command runner API in args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/lib/src/command/build.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/build.dart b/sdk/lib/_internal/pub_generated/lib/src/command/build.dart
index 5aeb37634abdd88c595a1d82dc3996d3ae72885d..c3a98e7004136f34fbf7f30fd4c1341ae6817931 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/build.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/build.dart
@@ -20,13 +20,14 @@ final _arrow = getSpecial('\u2192', '=>');
/// Handles the `build` pub command.
class BuildCommand extends BarbackCommand {
+ String get name => "build";
String get description => "Apply transformers to build a package.";
- String get usage => "pub build [options] [directories...]";
+ String get invocation => "pub build [argResults] [directories...]";
String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-build.html";
List<String> get aliases => const ["deploy", "settle-up"];
/// The path to the application's build output directory.
- String get outputDirectory => commandOptions["output"];
+ String get outputDirectory => argResults["output"];
List<String> get defaultSourceDirectories => ["web"];
@@ -34,13 +35,13 @@ class BuildCommand extends BarbackCommand {
int builtFiles = 0;
BuildCommand() {
- commandParser.addOption(
+ argParser.addOption(
"format",
help: "How output should be displayed.",
allowed: ["text", "json"],
defaultsTo: "text");
- commandParser.addOption(
+ argParser.addOption(
"output",
abbr: "o",
help: "Directory to write build outputs to.",

Powered by Google App Engine
This is Rietveld 408576698