Commit ae01a96
[Crane: crane-migration-python-to-go-full-apm-cli-rewrite] Iteration 143: fix apm mcp install unknown-option parity
Changes:
- cmd/apm/cmd_mcp.go: Fix runMCPInstall to not treat --X args as NAME
positional. Python Click's ignore_unknown_options=True treats --X as
unknown options (ctx.args), not as NAME. So 'apm mcp install --foo'
outputs 'Error: Missing argument NAME.' -- not the 4-line UsageError.
- Remove unreachable strings.HasPrefix(name, "-") error block.
Run: https://github.com/githubnext/apm/actions/runs/28225237618
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1a51991 commit ae01a96
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 98 | | |
107 | 99 | | |
108 | 100 | | |
| |||
0 commit comments