# shellcheck shell=bash

usage() {
  cat >&2 <<'USAGE'
usage:
  okstra-ctl projects [--sort recent|name|count] [--active]
  okstra-ctl list     [--project <id|all>] [--task-group <name|all>]
                      [--status running|completed|failed|all]
                      [--since <duration|date>] [--limit N]
  okstra-ctl show     <taskId-or-prefix>
  okstra-ctl open     <taskId-or-prefix>
  okstra-ctl tail     <taskId-or-prefix> | active
  okstra-ctl rerun    <selector> [<selector> ...]
                      [--filter --project <id|all> --task-group <name|all>
                                --status ... --since ...]
                      [--max-spawn N] [--dry-run] [--yes]
  okstra-ctl batch    list
  okstra-ctl batch    status <batch-id>
  okstra-ctl reconcile [--project <id|all>]
  okstra-ctl reindex  [--project <id|all>]
  okstra-ctl --help
USAGE
}
