Minor cleanup in pub.dart, pub command in dartdev
Minor cleanup in pub.dart, pub command in dartdev

Change-Id: I38c915502e8ff98fc13fba737913c61e0940cdf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141901
Auto-Submit: Jaime Wren <cd1ab83d11dd618c6b8cd01592020d0bd5183fdc@google.com>
Commit-Queue: Devon Carew <e996497f4f2225f0ee7a9f4d1696ee710b488b66@google.com>
Reviewed-by: Devon Carew <e996497f4f2225f0ee7a9f4d1696ee710b488b66@google.com>

dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk