Fix "Reindent" option for sqlformat.
For sqlparse-0.2.3 and sqlparse-0.2.4, beautifying sql will throw "sqlformat: error: argument -r/--reindent: ignored explicit argument".
This commit is contained in:
parent
ef5a1b1f4b
commit
f37cb40ad8
|
@ -1,5 +1,5 @@
|
|||
# Next
|
||||
- ...
|
||||
- Fix "Reindent" option for sqlformat.
|
||||
|
||||
# v0.32.0 (2018-03-02)
|
||||
- See [#2026](https://github.com/Glavin001/atom-beautify/issues/2026) Add Vue support to ESLint Fixer beautifier. Should be used with [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue).
|
||||
|
|
|
@ -17,7 +17,7 @@ module.exports = class Sqlformat extends Beautifier
|
|||
beautify: (text, language, options) ->
|
||||
@run("sqlformat", [
|
||||
@tempFile("input", text)
|
||||
"--reindent=#{options.reindent}" if options.reindent?
|
||||
"--reindent" if (options.reindent? && options.reindent == true)
|
||||
"--indent_width=#{options.indent_size}" if options.indent_size?
|
||||
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
|
||||
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')
|
||||
|
|
Loading…
Reference in New Issue