Commit 0c01671
fix(alias): align alias --help guidance with output guidelines (#2447)
The hint emitted on `wt <alias> --help` violated several user-output
conventions: it printed to stdout without a symbol or gutter, used
backticks around commands and the alias name, and stacked three indented
commands as bullets.
Replaced with a state-acknowledging info line for the alias name plus a
single hint joining the three suggestions via "to X, run Y" semicolons.
Commands and the alias name are styled with `<underline>` (dim-safe in
hints), and output now goes to stderr where status messages belong.
Before:
```
$ wt sw --help
\`sw\` is an alias. Inspect with:
wt config alias show sw
wt config alias dry-run sw
Forward \`--help\` to the alias body with \`wt sw -- --help\`.
```
After:
```
$ wt sw --help
○ sw is an alias
↳ To view config, run wt config alias show sw; to preview expansion, run wt config alias dry-run sw; to forward --help to the alias body, run wt sw -- --help
```
> _This was written by Claude Code on behalf of
[@max-sixty](https://github.com/max-sixty)._
Co-authored-by: Claude <noreply@anthropic.com>1 parent 04025e6 commit 0c01671
2 files changed
Lines changed: 9 additions & 10 deletions
File tree
- src/commands
- tests/snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 45 | | |
50 | 46 | | |
| 47 | + | |
| 48 | + | |
0 commit comments