head static method

String head(
  1. ArgResults argResults,
  2. Never usageException(
    1. String message
    )
)

Implementation

static String head(
  ArgResults argResults,
  Never Function(String message) usageException,
) {
  final head = argResults.requireParam(_name);
  if (head.isEmpty) {
    usageException('head is empty');
  }
  return head;
}