From bdd40af52f978cae45d40c15e0532c0ad89c27e4 Mon Sep 17 00:00:00 2001 From: Jonathan Matthews Date: Wed, 18 Sep 2024 17:12:13 +0100 Subject: [PATCH] cmd/cue: help mod edit: fix copy/paste error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This updates the help text emitted by "cue help mod edit" and replaces some prose left in place from copying Go's equivalent help text. Fixes #3401. Signed-off-by: Jonathan Matthews Change-Id: I0d1b2859e00aacf69de30ad828706736bf763c5e Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201449 TryBot-Result: CUEcueckoo Reviewed-by: Daniel Martí --- cmd/cue/cmd/modedit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cue/cmd/modedit.go b/cmd/cue/cmd/modedit.go index 20a8231c35a..2a86d5a9f68 100644 --- a/cmd/cue/cmd/modedit.go +++ b/cmd/cue/cmd/modedit.go @@ -43,8 +43,8 @@ The -require=path@version and -drop-require=path@majorversion flags add and drop a requirement on the given module path and version. Note that -require overrides any existing requirements on path. These flags are mainly for tools that understand the module graph. Users should prefer -'cue get path@version' which makes other go.mod adjustments as needed -to satisfy constraints imposed by other modules. +'cue mod get path@version' which makes other cue.mod adjustments as +needed to satisfy constraints imposed by other modules. The --module flag changes the module's path (the module.cue file's module field). The --source flag changes the module's declared source.