docs: list all supported languages for --lang - #291
Open
Socialpranker wants to merge 1 commit into
Open
Conversation
The --lang description named kotlin, swift, go and typescript, but AvailableLanguage in cli/src/args.rs has six variants: Kotlin, Scala, Swift and Typescript unconditionally, plus Go and Python behind their respective cargo features. Scala was missing entirely even though usage.md lists it and uses --lang=scala in an example, and python was missing as well. The feature gating is spelled out the same way the --go-package entry further down this file already does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disclosure: this patch was prepared with AI assistance (Claude Opus 5). I checked the enum and the cargo features myself before opening this.
Problem
The
--langentry indocs/src/usage/configuration.mdsays:AvailableLanguageincli/src/args.rshas six variants:So
scalawas missing entirely, andpythonwas missing as well.Scala is not an obscure omission —
docs/src/usage/usage.mdlists it among the supported languages and uses it in an example (typeshare ./my_rust_project --lang=scala ...), and the README mentions it too. The gap is specific to this one file.Fix
List all six, and note the feature gating for the two that have it (
[features] go = [], python = []incli/Cargo.toml). The phrasing follows the--go-packageentry a few lines further down in the same file, which already describes its feature requirement that way.