diff options
| author | Patrick Schemitz <patrick.schemitz@digitalbriefkasten.de> | 2018-03-03 15:30:07 +0100 |
|---|---|---|
| committer | Patrick Schemitz <patrick.schemitz@digitalbriefkasten.de> | 2018-03-03 15:30:07 +0100 |
| commit | ec0af031e646251b91c15761012ede966d455358 (patch) | |
| tree | 7cab9880d7e49737b5ae2bc4cf857fb13c84efdc /sqlparse | |
| parent | 6dac1d9c98742e5e7df1281d09d33db67fdde9a6 (diff) | |
| download | sqlparse-ec0af031e646251b91c15761012ede966d455358.tar.gz | |
new option --indent_columns to indent all columns by --indent_width
Diffstat (limited to 'sqlparse')
| -rwxr-xr-x | sqlparse/cli.py | 7 |
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, |
