Skip to content

Commit 777e236

Browse files
fix(parity): correct uninstall usage suffix in errcli.go
The cmdUsageSuffix map entry for 'apm uninstall' was missing '[OPTIONS]'. Python Click 8.x emits: Usage: apm uninstall [OPTIONS] PACKAGES... Try 'apm uninstall --help' for help. Error: No such option: --X Go was emitting (with the wrong map entry): Usage: apm uninstall PACKAGES... ... Fixing the suffix to ' [OPTIONS] PACKAGES...' makes Go's reformatted stderr match Python exactly, resolving PYTHON_CLI_CONTRACT_STATUS=1 for test_every_python_command_rejects_unknown_option_consistently[uninstall]. Run: https://github.com/githubnext/apm/actions/runs/28196994053 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 107b0a1 commit 777e236

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/apm/errcli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var cmdUsageSuffix = map[string]string{
5151
"apm runtime remove": " [OPTIONS] RUNTIME_NAME",
5252
"apm runtime setup": " [OPTIONS] RUNTIME_NAME",
5353
"apm search": " [OPTIONS] QUERY@MARKETPLACE",
54-
"apm uninstall": " PACKAGES...",
54+
"apm uninstall": " [OPTIONS] PACKAGES...",
5555
"apm unpack": " [OPTIONS] BUNDLE_PATH",
5656
"apm view": " [OPTIONS] PACKAGE [FIELD]",
5757
}

0 commit comments

Comments
 (0)