🎫 Ticket 273: mm help, the same as mm --help
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f4b8126 parent: 9a2387c added
.tickets/issues/0273-mm-help-an-overview-of-mm-and-its-subcommands.yaml +102 -0 | new file mode 100644 | ||
| @@ -0,0 +1,102 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 273 | |
| 3 | +title: "mm help: the same as mm --help and mm -help" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-27T07:30:00.000Z | |
| 9 | +updatedAt: 2026-11-27T07:45:00.000Z | |
| 10 | +labels: | |
| 11 | + - enhancement | |
| 12 | + - kind::feature | |
| 13 | +epic: CLI | |
| 14 | +body: | | |
| 15 | + ## Asked (user, 2026-11-27) | |
| 16 | + A `mm help` command. Decided (user, same day): **`mm help` works exactly | |
| 17 | + like `mm --help` and `mm -help`** — an alias, nothing more. | |
| 18 | + | |
| 19 | + ## What "exactly" means (measured 2026-11-27, main 9a2387c) | |
| 20 | + `mm --help`, `mm -help` and `mm -h` all print the same 35 lines on | |
| 21 | + STDERR (Go's flag usage, headed `Usage of <path to mm>:`) and exit 0. | |
| 22 | + `mm help` must print the same text, on the same stream, with the same | |
| 23 | + exit code. | |
| 24 | + | |
| 25 | + ## Today (checked 2026-11-27, main 9a2387c) | |
| 26 | + - `mm help` takes `help` for a config file: | |
| 27 | + `[config error: open help: no such file or directory ]` (note the | |
| 28 | + trailing space before `]`), exit 1. | |
| 29 | + - `mm --help` / `-h` print Go's raw flag list, headed | |
| 30 | + `Usage of /absolute/path/to/mm:` — every flag in alphabetical order | |
| 31 | + (`-a2a`, `-a2a-port`, …, `-version`), no grouping, no example, no word | |
| 32 | + on the subcommands' own flags beyond "`mm init -h` for its flags". | |
| 33 | + - Subcommands recognised as the first argument (main.go): `init`, | |
| 34 | + `acp-create`, `dockerinit`, `sbxinit`, `a2a-send`, `skillcreate`, and | |
| 35 | + the mode words `acp`, `tui`, `a2a`. Each wizard has its own `-h`. | |
| 36 | + | |
| 37 | + ## Proposal (set aside by the user, 2026-11-27 — kept for the record) | |
| 38 | + - `mm help` (also `mm --help`, `mm -h`): a short, grouped overview, on | |
| 39 | + stdout, exit 0: | |
| 40 | + - what mm is, in one line (as `--about`); | |
| 41 | + - how to start it: `mm` (line mode), `mm tui`, `mm -p "…"`, | |
| 42 | + `mm acp`, `mm a2a`, `mm --ask <agent>`; | |
| 43 | + - where the agent file is looked for (`-config`, `$AGENT_CONFIG`, | |
| 44 | + `./agent.yaml`, `./.mm/agent.yaml`); | |
| 45 | + - the subcommands with one line each: `init`, `skillcreate`, | |
| 46 | + `sbxinit`, `dockerinit`, `acp-create`, `a2a-send`; | |
| 47 | + - the flags, grouped (modes, one-shot, config, info) rather than | |
| 48 | + alphabetical; | |
| 49 | + - where to read more: the docs (README, docs/en, docs/fr) and | |
| 50 | + `/help` inside a session for the slash commands. | |
| 51 | + - `mm help <command>`: that command's help — the same text as | |
| 52 | + `mm <command> -h` (`mm help init`, `mm help sbxinit`…); an unknown name | |
| 53 | + says so and lists the known ones, exit 2. | |
| 54 | + - One source for the subcommands' names and one-line descriptions, so | |
| 55 | + that `mm help`, the dispatch in main.go and the docs cannot drift (the | |
| 56 | + rule internal/command follows for the slash commands). | |
| 57 | + | |
| 58 | + ## Open questions (moot after the decision) | |
| 59 | + - A file or folder actually called `help` in the current directory: | |
| 60 | + the subcommand wins (as `init` does today)? Proposed: yes. | |
| 61 | + - `mm help config`: also print the agent file's keys (a summary of | |
| 62 | + docs/en/reference/configuration.md)? Or only point to it. | |
| 63 | + - Language: English only (as every CLI message today), or follow the | |
| 64 | + system language? | |
| 65 | + - Keep Go's alphabetical flag list reachable (`mm help flags`)? | |
| 66 | + | |
| 67 | + ## Done when | |
| 68 | + - `mm help` (as the first argument) prints exactly what `mm --help` | |
| 69 | + prints, on stderr, exit 0 — with a test comparing the two. | |
| 70 | + - A file or folder named `help` in the current directory does not change | |
| 71 | + it (the subcommand wins, as `init` does). | |
| 72 | + - Docs EN+FR: reference/cli.md (the `help` word beside `-h`/`--help`). | |
| 73 | +tasks: | |
| 74 | + - id: 1 | |
| 75 | + title: "Decide with the user what mm help does" | |
| 76 | + state: closed | |
| 77 | + priority: high | |
| 78 | + author: | |
| 79 | + name: k33g | |
| 80 | + email: ph.charriere@gmail.com | |
| 81 | + createdAt: 2026-11-27T07:30:00.000Z | |
| 82 | + updatedAt: 2026-11-27T07:45:00.000Z | |
| 83 | + closedAt: 2026-11-27T07:45:00.000Z | |
| 84 | + - id: 2 | |
| 85 | + title: "mm help as the first argument = mm --help (same text, stderr, exit 0) — with a test comparing them" | |
| 86 | + state: open | |
| 87 | + priority: medium | |
| 88 | + author: | |
| 89 | + name: k33g | |
| 90 | + email: ph.charriere@gmail.com | |
| 91 | + createdAt: 2026-11-27T07:45:00.000Z | |
| 92 | + updatedAt: 2026-11-27T07:45:00.000Z | |
| 93 | + - id: 3 | |
| 94 | + title: "Docs EN+FR: reference/cli.md" | |
| 95 | + state: open | |
| 96 | + priority: low | |
| 97 | + author: | |
| 98 | + name: k33g | |
| 99 | + email: ph.charriere@gmail.com | |
| 100 | + createdAt: 2026-11-27T07:45:00.000Z | |
| 101 | + updatedAt: 2026-11-27T07:45:00.000Z | |
| 102 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 273 | ||
| 3 | +title: "mm help: the same as mm --help and mm -help" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-27T07:30:00.000Z | ||
| 9 | +updatedAt: 2026-11-27T07:45:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - enhancement | ||
| 12 | + - kind::feature | ||
| 13 | +epic: CLI | ||
| 14 | +body: | | ||
| 15 | + ## Asked (user, 2026-11-27) | ||
| 16 | + A `mm help` command. Decided (user, same day): **`mm help` works exactly | ||
| 17 | + like `mm --help` and `mm -help`** — an alias, nothing more. | ||
| 18 | + | ||
| 19 | + ## What "exactly" means (measured 2026-11-27, main 9a2387c) | ||
| 20 | + `mm --help`, `mm -help` and `mm -h` all print the same 35 lines on | ||
| 21 | + STDERR (Go's flag usage, headed `Usage of <path to mm>:`) and exit 0. | ||
| 22 | + `mm help` must print the same text, on the same stream, with the same | ||
| 23 | + exit code. | ||
| 24 | + | ||
| 25 | + ## Today (checked 2026-11-27, main 9a2387c) | ||
| 26 | + - `mm help` takes `help` for a config file: | ||
| 27 | + `[config error: open help: no such file or directory ]` (note the | ||
| 28 | + trailing space before `]`), exit 1. | ||
| 29 | + - `mm --help` / `-h` print Go's raw flag list, headed | ||
| 30 | + `Usage of /absolute/path/to/mm:` — every flag in alphabetical order | ||
| 31 | + (`-a2a`, `-a2a-port`, …, `-version`), no grouping, no example, no word | ||
| 32 | + on the subcommands' own flags beyond "`mm init -h` for its flags". | ||
| 33 | + - Subcommands recognised as the first argument (main.go): `init`, | ||
| 34 | + `acp-create`, `dockerinit`, `sbxinit`, `a2a-send`, `skillcreate`, and | ||
| 35 | + the mode words `acp`, `tui`, `a2a`. Each wizard has its own `-h`. | ||
| 36 | + | ||
| 37 | + ## Proposal (set aside by the user, 2026-11-27 — kept for the record) | ||
| 38 | + - `mm help` (also `mm --help`, `mm -h`): a short, grouped overview, on | ||
| 39 | + stdout, exit 0: | ||
| 40 | + - what mm is, in one line (as `--about`); | ||
| 41 | + - how to start it: `mm` (line mode), `mm tui`, `mm -p "…"`, | ||
| 42 | + `mm acp`, `mm a2a`, `mm --ask <agent>`; | ||
| 43 | + - where the agent file is looked for (`-config`, `$AGENT_CONFIG`, | ||
| 44 | + `./agent.yaml`, `./.mm/agent.yaml`); | ||
| 45 | + - the subcommands with one line each: `init`, `skillcreate`, | ||
| 46 | + `sbxinit`, `dockerinit`, `acp-create`, `a2a-send`; | ||
| 47 | + - the flags, grouped (modes, one-shot, config, info) rather than | ||
| 48 | + alphabetical; | ||
| 49 | + - where to read more: the docs (README, docs/en, docs/fr) and | ||
| 50 | + `/help` inside a session for the slash commands. | ||
| 51 | + - `mm help <command>`: that command's help — the same text as | ||
| 52 | + `mm <command> -h` (`mm help init`, `mm help sbxinit`…); an unknown name | ||
| 53 | + says so and lists the known ones, exit 2. | ||
| 54 | + - One source for the subcommands' names and one-line descriptions, so | ||
| 55 | + that `mm help`, the dispatch in main.go and the docs cannot drift (the | ||
| 56 | + rule internal/command follows for the slash commands). | ||
| 57 | + | ||
| 58 | + ## Open questions (moot after the decision) | ||
| 59 | + - A file or folder actually called `help` in the current directory: | ||
| 60 | + the subcommand wins (as `init` does today)? Proposed: yes. | ||
| 61 | + - `mm help config`: also print the agent file's keys (a summary of | ||
| 62 | + docs/en/reference/configuration.md)? Or only point to it. | ||
| 63 | + - Language: English only (as every CLI message today), or follow the | ||
| 64 | + system language? | ||
| 65 | + - Keep Go's alphabetical flag list reachable (`mm help flags`)? | ||
| 66 | + | ||
| 67 | + ## Done when | ||
| 68 | + - `mm help` (as the first argument) prints exactly what `mm --help` | ||
| 69 | + prints, on stderr, exit 0 — with a test comparing the two. | ||
| 70 | + - A file or folder named `help` in the current directory does not change | ||
| 71 | + it (the subcommand wins, as `init` does). | ||
| 72 | + - Docs EN+FR: reference/cli.md (the `help` word beside `-h`/`--help`). | ||
| 73 | +tasks: | ||
| 74 | + - id: 1 | ||
| 75 | + title: "Decide with the user what mm help does" | ||
| 76 | + state: closed | ||
| 77 | + priority: high | ||
| 78 | + author: | ||
| 79 | + name: k33g | ||
| 80 | + email: ph.charriere@gmail.com | ||
| 81 | + createdAt: 2026-11-27T07:30:00.000Z | ||
| 82 | + updatedAt: 2026-11-27T07:45:00.000Z | ||
| 83 | + closedAt: 2026-11-27T07:45:00.000Z | ||
| 84 | + - id: 2 | ||
| 85 | + title: "mm help as the first argument = mm --help (same text, stderr, exit 0) — with a test comparing them" | ||
| 86 | + state: open | ||
| 87 | + priority: medium | ||
| 88 | + author: | ||
| 89 | + name: k33g | ||
| 90 | + email: ph.charriere@gmail.com | ||
| 91 | + createdAt: 2026-11-27T07:45:00.000Z | ||
| 92 | + updatedAt: 2026-11-27T07:45:00.000Z | ||
| 93 | + - id: 3 | ||
| 94 | + title: "Docs EN+FR: reference/cli.md" | ||
| 95 | + state: open | ||
| 96 | + priority: low | ||
| 97 | + author: | ||
| 98 | + name: k33g | ||
| 99 | + email: ph.charriere@gmail.com | ||
| 100 | + createdAt: 2026-11-27T07:45:00.000Z | ||
| 101 | + updatedAt: 2026-11-27T07:45:00.000Z | ||
| 102 | +comments: [] | ||