usage property

String get usage

Implementation

static String get usage {
  const pad = 21;
  return [
    'Usage: btool <command> [...args]',
    '',
    'Commands:',
    '',
    '${'get <key>'.padRight(pad)}Get config value',
    '${'set <key> <value>'.padRight(pad)}Set config value',
    '',
    'Available keys:',
    '',
    BToolOptionKey.values.map((x) => '- ${x.name}').join('\n'),
    '',
    'Optional flags:',
    '',
    BToolOptions.parser.usage,
  ].join('\n');
}