Skip to content

Commit d77ee6e

Browse files
committed
Document moon explain attribute help
1 parent a6fc224 commit d77ee6e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

moonbit-agent-guide/SKILL.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,12 @@ EOF
255255
)"
256256
````
257257
Get the diagnostics with "unused" in the message, which can be used to find unused code.
258-
- `moon explain` - Show built-in documentation for compiler diagnostics.
259-
- `moon explain --diagnostics` lists warning mnemonics and IDs.
260-
- `moon explain --diagnostics 31` explains warning 31 (`unused_optional_argument`).
261-
- `moon explain --diagnostics unused_optional_argument` explains the same warning by mnemonic.
258+
- `moon explain` - Show built-in documentation for compiler diagnostics and language topics.
259+
- `moon explain --diagnostic` lists warning mnemonics and IDs.
260+
- `moon explain --diagnostic 31` explains warning 31 (`unused_optional_argument`).
261+
- `moon explain --diagnostic unused_optional_argument` explains the same warning by mnemonic.
262+
- `moon explain --attribute` lists supported attributes such as `#deprecated`, `#alias`, `#cfg`, `#coverage.skip`, and `#warnings`.
263+
- `moon explain --attribute deprecated` explains the `#deprecated` attribute and its supported forms.
262264
- `moon add package` - Add dependency
263265
- `moon remove package` - Remove dependency
264266
- `moon fmt` - Format code - should be run periodically - note that the files may be rewritten

0 commit comments

Comments
 (0)