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

Unified Diff: pkg/analyzer/bin/formatter.dart

Issue 129813007: dartfmt commandline argument tweaks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/bin/formatter.dart
===================================================================
--- pkg/analyzer/bin/formatter.dart (revision 31682)
+++ pkg/analyzer/bin/formatter.dart (working copy)
@@ -135,12 +135,12 @@
'Do not print reformatted sources to standard output.');
parser.addOption('kind', abbr: 'k', defaultsTo: 'cu',
help: 'Specify source snippet kind ("stmt" or "cu")'
- ' --- [PROVISIONAL API].');
+ ' --- [PROVISIONAL API].', hide: true);
parser.addFlag('machine', abbr: 'm', negatable: false,
help: 'Produce output in a format suitable for parsing.');
parser.addOption('selection', abbr: 's',
help: 'Specify selection information as an offset,length pair '
- '(e.g., -s "0,4").');
+ '(e.g., -s "0,4").', hide: true);
parser.addFlag('transform', abbr: 't', negatable: true,
help: 'Perform code transformations.');
parser.addFlag('help', abbr: 'h', negatable: false,
@@ -161,8 +161,8 @@
'default, $BINARY_NAME prints the reformatted sources to '
'standard output.')
..write('\n\n')
- ..write('Supported flags are:')
..write('Usage: $BINARY_NAME [flags] [path...]\n\n')
+ ..write('Supported flags are:\n')
..write('${argParser.getUsage()}\n\n');
_log(buffer.toString());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698