Repository: d0c-s4vage/lookatme

Issue:
add --version flag to CLI
```
lookatme --version
0.4.0
```

Discussion:

Patch:
diff --git a/lookatme/__main__.py b/lookatme/__main__.py
index a42b1d7..78d5101 100644
--- a/lookatme/__main__.py
+++ b/lookatme/__main__.py
@@ -57,6 +57,7 @@ from lookatme.schemas import StyleSchema
     is_flag=True,
     default=False,
 )
+@click.version_option(lookatme.__version__)
 @click.argument(
     "input_files",
     type=click.File("r"),


Test patch:
diff --git a/tests/test_cli.py b/tests/test_cli.py
index e480bd0..b3be2f1 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -6,6 +6,7 @@ Test the main CLI
 from click.testing import CliRunner
 
 
+import lookatme
 from lookatme.__main__ import main
 
 
@@ -22,3 +23,11 @@ def test_dump_styles_unicode():
     res = run_cmd("--dump-styles")
     assert res.exit_code == 0
     assert "█" in res.output
+
+
+def test_version():
+    """Test the version option
+    """
+    res = run_cmd("--version")
+    assert res.exit_code == 0
+    assert lookatme.__version__ in res.output