796d628ab6
* Ensure that we have a .dill file and it has the correct version before we start decoding it in dump.dart. * Throw errors, not strings. Ensure that they have a useful toString(). * Do not print usage except when the command is invoked incorrectly (wrong number of arguments). Once we get into the command it's less likely that it's been invoked incorrectly and more likely that something else has gone wrong. Because these utilities are invoked from other scripts (like the fasta command), printing their usage for problems other than invoking them correctly doesn't match the way that they were invoked and it's confusing. Change-Id: I7832383594d2b3719a0a7a7392ba4685717a79d2 Reviewed-on: https://dart-review.googlesource.com/c/78206 Commit-Queue: Kevin Millikin <kmillikin@google.com> Reviewed-by: Jens Johansen <jensj@google.com>