summaryrefslogtreecommitdiff
path: root/sqlparse/cli.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2016-09-14 18:42:22 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2016-09-14 18:42:22 +0200
commit4d05b441fcb801d320ac52ce90465b74d419ceac (patch)
tree0f18b1f401d1fce76be0d8403153e5616dbe573e /sqlparse/cli.py
parent4430c5c163d8b6ffc89d83b506c8a478037d26ea (diff)
downloadsqlparse-4d05b441fcb801d320ac52ce90465b74d419ceac.tar.gz
Add formatter option for comma first notation (fixes #141).
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 9479dd1..bd2e1b8 100755
--- a/sqlparse/cli.py
+++ b/sqlparse/cli.py
@@ -118,6 +118,13 @@ def create_parser():
type=int,
help='Column after which lists should be wrapped')
+ group.add_argument(
+ '--comma_first',
+ dest='comma_first',
+ default=False,
+ type=bool,
+ help='Insert linebreak before comma (default False)')
+
return parser