mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Dartdev help output change, change the help output to be 'dart' instead of 'dartdev' in anticipation of having the Dart VM delegate to dartdev for supported commands
Change-Id: I2ff421bc08c825b16a40648b84e165e4d6f55d01 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135941 Auto-Submit: Jaime Wren <jwren@google.com> Commit-Queue: Devon Carew <devoncarew@google.com> Reviewed-by: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
4512dfee4d
commit
f4bec13a15
|
@ -15,7 +15,7 @@ class DartdevRunner<int> extends CommandRunner {
|
|||
static const String dartdevDescription =
|
||||
'A command-line utility for Dart development';
|
||||
|
||||
DartdevRunner(List<String> args) : super('dartdev', '$dartdevDescription.') {
|
||||
DartdevRunner(List<String> args) : super('dart', '$dartdevDescription.') {
|
||||
final bool verbose = args.contains('-v') || args.contains('--verbose');
|
||||
|
||||
argParser.addFlag('verbose',
|
||||
|
|
|
@ -24,7 +24,7 @@ void help() {
|
|||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains(DartdevRunner.dartdevDescription));
|
||||
expect(result.stdout, contains('Usage: dartdev <command> [arguments]'));
|
||||
expect(result.stdout, contains('Usage: dart <command> [arguments]'));
|
||||
expect(result.stdout, contains('Global options:'));
|
||||
expect(result.stdout, contains('Available commands:'));
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ void format() {
|
|||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains('Idiomatically formats Dart source code.'));
|
||||
expect(result.stdout, contains('Usage: dartdev format [arguments]'));
|
||||
expect(result.stdout, contains('Usage: dart format [arguments]'));
|
||||
});
|
||||
|
||||
test('--help', () {
|
||||
|
@ -32,7 +32,7 @@ void format() {
|
|||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains('Idiomatically formats Dart source code.'));
|
||||
expect(result.stdout, contains('Usage: dartdev format [arguments]'));
|
||||
expect(result.stdout, contains('Usage: dart format [arguments]'));
|
||||
});
|
||||
|
||||
test('unchanged', () {
|
||||
|
|
|
@ -20,8 +20,7 @@ void pub() {
|
|||
var result = p.runSync('pub');
|
||||
expect(result.exitCode, 64);
|
||||
expect(result.stdout, isEmpty);
|
||||
expect(
|
||||
result.stderr, contains('Usage: dartdev pub <subcommand> [arguments]'));
|
||||
expect(result.stderr, contains('Usage: dart pub <subcommand> [arguments]'));
|
||||
expect(result.stderr,
|
||||
contains('Print debugging information when an error occurs.'));
|
||||
});
|
||||
|
@ -33,8 +32,7 @@ void pub() {
|
|||
expect(result.exitCode, 0);
|
||||
expect(result.stderr, isEmpty);
|
||||
expect(result.stdout, contains('Pub is a package manager for Dart.'));
|
||||
expect(
|
||||
result.stdout, contains('Usage: dartdev pub <subcommand> [arguments]'));
|
||||
expect(result.stdout, contains('Usage: dart pub <subcommand> [arguments]'));
|
||||
expect(result.stdout,
|
||||
contains('Print debugging information when an error occurs.'));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue