summaryrefslogtreecommitdiffstats
path: root/sqlglot/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sqlglot/__main__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sqlglot/__main__.py b/sqlglot/__main__.py
index f3433d3..4a2820b 100644
--- a/sqlglot/__main__.py
+++ b/sqlglot/__main__.py
@@ -58,6 +58,12 @@ parser.add_argument(
default="IMMEDIATE",
help="IGNORE, WARN, RAISE, IMMEDIATE (default)",
)
+parser.add_argument(
+ "--version",
+ action="version",
+ version=sqlglot.__version__,
+ help="Display the SQLGlot version",
+)
args = parser.parse_args()