mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-23 16:50:23 +00:00
feat: Add --version option
This commit is contained in:
parent
026e2b04e0
commit
bb9b734287
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ from pathlib import Path
|
|||
from typing import List
|
||||
|
||||
import click
|
||||
import pkg_resources
|
||||
from click import echo
|
||||
from colorama import Fore, Style, deinit, init
|
||||
from tqdm import tqdm
|
||||
|
|
@ -151,6 +152,7 @@ def build_quantity_tense(size: int) -> str:
|
|||
nargs=1,
|
||||
metavar="SRC ...",
|
||||
)
|
||||
@click.version_option(pkg_resources.get_distribution("djlint").version)
|
||||
@click.option(
|
||||
"-e",
|
||||
"--extension",
|
||||
|
|
|
|||
Loading…
Reference in a new issue