From d4005bd23508616c465dcc8ab7fb4c80325ed2eb Mon Sep 17 00:00:00 2001 From: Derek Cormier Date: Sat, 27 Jun 2026 12:44:44 -0700 Subject: [PATCH] Clarify the syntax for command-line formatting configuration --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5af9d615..b135843a 100644 --- a/README.md +++ b/README.md @@ -308,6 +308,9 @@ Alternatively, you can specify it on the command line, with `stylua --syntax lua StyLua only offers the following options: +> [!NOTE] +> When specifying the option on the command line, replace the underscore with a dash, e.g., `indent_type` becomes `--indent-type`. + | Option | Default | Description | | ---------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `syntax` | `All` | Specify a disambiguation for the style of Lua syntax being formatted. Possible options: `All` (default), `Lua51`, `Lua52`, `Lua53`, `Lua54`, `LuaJIT`, `Luau`, `CfxLua` |