style nit: for these fast fail/exit code we often write in a single line as
```dart
  if (args['port'] == null) fail('port not specified');
```