interface UpgradeOptions

What qunitx upgrade's argv asked for.

import type { UpgradeOptions } from './index.ts';

const options: UpgradeOptions = { check: true, force: false, writeManifest: false, help: false };
options.check; // true — report, change nothing

Properties

check: boolean

Report only: no download, no replace.

force: boolean

Replace even when the requested version is the one already running.

help: boolean

Print usage and stop.

Bump the declared range in the project's manifest instead of refusing outright.

optional
version: string

The pinned version, without its v. Absent means "the latest release".

Usage

import { type UpgradeOptions } from "lib/commands/upgrade/index.ts";