From cfc3e9c846ade61ec2e8b06fc17247f89f2a32a8 Mon Sep 17 00:00:00 2001 From: Corey Butler <770982+coreybutler@users.noreply.github.com> Date: Tue, 24 Nov 2026 23:10:51 -0600 Subject: [PATCH] feat: mention lts/-1 in version help text Surface the new LTS offset specifier in install and cache help examples. Resolver support lives in common. Refs #917 Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com> --- src/commands/cache/remove_version.go | 2 +- src/constant/flag_version.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/cache/remove_version.go b/src/commands/cache/remove_version.go index f68aab4..f8f0ec8 100644 --- a/src/commands/cache/remove_version.go +++ b/src/commands/cache/remove_version.go @@ -14,7 +14,7 @@ import ( type RemoveVersion struct { prompt All bool `flag:"all" short:"a" help:"Treat version numbers as a range and remove all versions within the range. For example, 20.1 removes 20.1.0, 20.1.2, 20.1.3, etc."` - Versions []string `arg:"version" optional:"" help:"The version of Node.js to remove from cache (e.g. latest, lts, lts/iron, x.x.x, x.x, x)."` + Versions []string `arg:"version" optional:"" help:"The version of Node.js to remove from cache (e.g. latest, lts, lts/iron, lts/-1, x.x.x, x.x, x)."` } func (c *RemoveVersion) Run() error { diff --git a/src/constant/flag_version.go b/src/constant/flag_version.go index 82af0fc..5355779 100644 --- a/src/constant/flag_version.go +++ b/src/constant/flag_version.go @@ -1,9 +1,9 @@ package constant type ArgVersion struct { - Version []string `arg:"version" required:"" help:"The version of Node.js to install (e.g. latest, alpha, lts, lts/iron, x.x.x, x.x, x). Omitting the version on nvm install installs latest (stable)."` + Version []string `arg:"version" required:"" help:"The version of Node.js to install (e.g. latest, alpha, lts, lts/iron, lts/-1, x.x.x, x.x, x). Omitting the version on nvm install installs latest (stable)."` } type ArgVersionOptional struct { - Version []string `arg:"version" optional:"" help:"The version of Node.js to install (e.g. latest, alpha, lts, lts/iron, x.x.x, x.x, x). Omit to install latest (stable)."` + Version []string `arg:"version" optional:"" help:"The version of Node.js to install (e.g. latest, alpha, lts, lts/iron, lts/-1, x.x.x, x.x, x). Omit to install latest (stable)."` }