diff --git a/README.md b/README.md index 786cad6..8973fc8 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ squill fmt --help # the full flag surface Options (via the nearest squill.toml or flags — flags win): `--dialect postgres|sqlite`, `--indent tab|spaces`, `--indent-width N` (default 2), `--keyword-case -lower|upper`, `--quote-idents unquote-safe|always`, `--at-params` for +lower|upper`, `--quote-idents as-needed|always`, `--at-params` for sqlc-style `@name` parameters, `--strict` to fail on statements that could not be parsed. diff --git a/crates/cli/src/config.rs b/crates/cli/src/config.rs index 9c87543..44f5420 100644 --- a/crates/cli/src/config.rs +++ b/crates/cli/src/config.rs @@ -74,7 +74,7 @@ pub fn parse_keyword_case(value: &str) -> Result { pub fn parse_quoting(value: &str) -> Result { match value { - "unquote-safe" => Ok(IdentQuoting::UnquotedWhenSafe), + "as-needed" => Ok(IdentQuoting::UnquotedWhenSafe), "always" => Ok(IdentQuoting::AlwaysQuoted), other => Err(format!("unknown quoting mode `{other}`")), } diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 49082a5..7df6fd7 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -35,7 +35,7 @@ Options: --indent