getDefault method

dynamic getDefault (String option)

Get the default value for an option. Useful after parsing to test if the user specified something other than the default.

Implementation

getDefault(String option) {
  if (!options.containsKey(option)) {
    throw ArgumentError('No option named $option');
  }
  return options[option].defaultsTo;
}