Change executable name to "darfmt". Fix #163.

R=pquitslund@google.com

Review URL: https://chromiumcodereview.appspot.com//943033002
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e19a191..85ee2d5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 0.1.5
+
+* Change executable name from `dartformat` to `dartfmt`.
+
 # 0.1.4
 
 * Don't mangle comma after function-typed initializing formal (#156).
diff --git a/README.md b/README.md
index b680ae4..ffe6eff 100644
--- a/README.md
+++ b/README.md
@@ -7,10 +7,6 @@
 intelligent line wrapping. It has no problems with nested collections, function
 expressions, long argument lists, or otherwise tricky code.
 
-**The formatter is at a beta state right now. It does a good job on most code,
-and I'd love to have you try it and [report bugs][bugs], but its output may
-change over time.**
-
 ## Running it
 
 The package exposes a simple command-line wrapper around the core formatting
@@ -18,7 +14,7 @@
 and let pub put its executable on your path:
 
     $ pub global activate dart_style
-    $ dartformat ...
+    $ dartfmt ...
 
 If you don't want `dartformat` on your path, you can run it explicitly:
 
diff --git a/bin/format.dart b/bin/format.dart
index d6be2b9..7703107 100644
--- a/bin/format.dart
+++ b/bin/format.dart
@@ -160,7 +160,7 @@
 
   output.write("""$message
 
-Usage: dartformat [-n|-w] [files or directories...]
+Usage: dartfmt [-n|-w] [files or directories...]
 
 ${parser.usage}
 """);
diff --git a/lib/src/source_visitor.dart b/lib/src/source_visitor.dart
index 0fbb8da..69d1617 100644
--- a/lib/src/source_visitor.dart
+++ b/lib/src/source_visitor.dart
@@ -1130,7 +1130,7 @@
     // Corner case: put a space between successive "-" operators so we don't
     // inadvertently turn them into a "--" decrement operator.
     if (node.operand is PrefixExpression &&
-        node.operand.operator.lexeme == "-") {
+        (node.operand as PrefixExpression).operator.lexeme == "-") {
       space();
     }
 
diff --git a/pubspec.yaml b/pubspec.yaml
index 8d6f4de..2944e09 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: dart_style
-version: 0.1.4
+version: 0.1.5
 author: Dart Team <misc@dartlang.org>
 description: Opinionated, automatic Dart source code formatter.
 homepage: https://github.com/dart-lang/dart_style
@@ -13,7 +13,8 @@
   scheduled_test: '>=0.11.2 <0.12.0'
   unittest: '>=0.11.0 <0.12.0'
 executables:
-  dartformat: format
+  dartfmt: format
+  dartformat: format # Allow the old name for compatibility.
 
 # Tell the bots not to bother building the tests since they don't run in a
 # browser anyway.