usage property

  1. @override
String get usage
override

Generates a string displaying usage information for this command.

This includes usage for the command's arguments as well as a list of subcommands, if there are any.

Implementation

@override
String get usage {
  // Compose custom usage with subcommands section
  return '''
Usage: learmond podman [options] <subcommand>

$description

Options:
${argParser.usage}

Subcommands:
start       Start the Podman VM
stop        Stop the Podman VM
reset       Reset the Podman VM
bind mount  Run container with bind mount
ps          List running containers
exec        Open interactive bash in a container
''';
}