summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDennis Taylor <dennis.taylor@clio.com>2016-06-02 15:28:27 -0700
committerDennis Taylor <dennis.taylor@clio.com>2016-06-02 15:28:27 -0700
commit9b84aac37a4099f4788508f98b7b1ed3010c424e (patch)
tree44c100cccbc104d1598cedc9c20baa664cb1abd7 /docs
parenta767c88b008d407d91b9118d124e2a9b579a7f12 (diff)
downloadsqlparse-9b84aac37a4099f4788508f98b7b1ed3010c424e.tar.gz
Add --wrap_after option for wrapping identifier lists.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/api.rst4
-rw-r--r--docs/sqlformat.14
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/source/api.rst b/docs/source/api.rst
index 518a428..e9fcdaa 100644
--- a/docs/source/api.rst
+++ b/docs/source/api.rst
@@ -52,6 +52,10 @@ The :meth:`~sqlparse.format` function accepts the following keyword arguments.
``indent_width``
The width of the indentation, defaults to 2.
+``wrap_after``
+ The column limit for wrapping comma-separated lists. If unspecified, it
+ puts every item in the list on its own line.
+
``output_format``
If given the output is additionally formatted to be used as a variable
in a programming language. Allowed values are "python" and "php".
diff --git a/docs/sqlformat.1 b/docs/sqlformat.1
index a42ea60..7d7987a 100644
--- a/docs/sqlformat.1
+++ b/docs/sqlformat.1
@@ -49,6 +49,10 @@ Set indent width to
.IR INDENT_WIDTH .
Default is 2 spaces.
.TP
+\fB\-\-wrap_after\fR=\fIWRAP_AFTER\fR
+The column limit for wrapping comma-separated lists. If unspecified, it
+puts every item in the list on its own line.
+.TP
\fB\-\-strip\-comments
Remove comments.
.TP