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

Unified Diff: bin/format.dart

Issue 935743002: Allow "-t" flag to preserve compability with old formatter. Fix #166. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 10 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 | « CHANGELOG.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/format.dart
diff --git a/bin/format.dart b/bin/format.dart
index a8375eb671b4f086a0658063c9cfe2660cf28d06..3c56b134ebc9cd7b80e63faba73f2b937f0fea95 100644
--- a/bin/format.dart
+++ b/bin/format.dart
@@ -19,6 +19,8 @@ void main(List<String> args) {
parser.addFlag("follow-links", negatable: false,
help: "Follow links to files and directories.\n"
"If unset, links will be ignored.");
+ parser.addFlag("transform", abbr: "t", negatable: false,
+ help: "Unused flag for compability with the old formatter.");
var options;
try {
@@ -101,7 +103,7 @@ void printUsage(ArgParser parser, [String error]) {
output.write("""$message
-Usage: dartformat [-l <line length>] <files or directories...>
+Usage: dartformat [-w] <files or directories...>
${parser.usage}
""");
« no previous file with comments | « CHANGELOG.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698