summaryrefslogtreecommitdiff
path: root/sqlparse/cli.py
diff options
context:
space:
mode:
authorPatrick Schemitz <patrick.schemitz@digitalbriefkasten.de>2018-03-03 15:30:07 +0100
committerPatrick Schemitz <patrick.schemitz@digitalbriefkasten.de>2018-03-03 15:30:07 +0100
commitec0af031e646251b91c15761012ede966d455358 (patch)
tree7cab9880d7e49737b5ae2bc4cf857fb13c84efdc /sqlparse/cli.py
parent6dac1d9c98742e5e7df1281d09d33db67fdde9a6 (diff)
downloadsqlparse-ec0af031e646251b91c15761012ede966d455358.tar.gz
new option --indent_columns to indent all columns by --indent_width
Diffstat (limited to 'sqlparse/cli.py')
-rwxr-xr-xsqlparse/cli.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sqlparse/cli.py b/sqlparse/cli.py
index f7a3728..14e644b 100755
--- a/sqlparse/cli.py
+++ b/sqlparse/cli.py
@@ -109,6 +109,13 @@ def create_parser():
help='indent after first line of statement (e.g. SELECT)')
group.add_argument(
+ '--indent_columns',
+ dest='indent_columns',
+ action='store_true',
+ default=False,
+ help='indent all columns by indent_width instead of keyword length')
+
+ group.add_argument(
'-a', '--reindent_aligned',
action='store_true',
default=False,