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

Unified Diff: pkg/args/lib/src/help_command.dart

Issue 812743002: Fix the built-in help command in args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« no previous file with comments | « pkg/args/lib/command_runner.dart ('k') | pkg/args/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/lib/src/help_command.dart
diff --git a/pkg/args/lib/src/help_command.dart b/pkg/args/lib/src/help_command.dart
index 283f3074fe9f75bd2c64f0b4e97833dfb8a24631..f477b4740e630160700eb34eaee325a9af791726 100644
--- a/pkg/args/lib/src/help_command.dart
+++ b/pkg/args/lib/src/help_command.dart
@@ -13,11 +13,11 @@ class HelpCommand extends Command {
final name = "help";
String get description =>
"Display help information for ${runner.executableName}.";
- String get usage => "${runner.executableName} help [command]";
+ String get invocation => "${runner.executableName} help [command]";
void run() {
// Show the default help if no command was specified.
- if (options.rest.isEmpty) {
+ if (argResults.rest.isEmpty) {
runner.printUsage();
return;
}
@@ -28,7 +28,7 @@ class HelpCommand extends Command {
var command = null;
var commandString = runner.executableName;
- for (var name in options.rest) {
+ for (var name in argResults.rest) {
if (commands.isEmpty) {
command.usageException(
'Command "$commandString" does not expect a subcommand.');
« no previous file with comments | « pkg/args/lib/command_runner.dart ('k') | pkg/args/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698