Skip to content

Commit

Permalink
Add --version option
Browse files Browse the repository at this point in the history
  • Loading branch information
BMPixel committed Aug 18, 2024
1 parent b59abbd commit 9ec904f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions moffee/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.2.5"
5 changes: 4 additions & 1 deletion moffee/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from moffee import __version__
import click
import os
from functools import partial
Expand Down Expand Up @@ -43,8 +44,10 @@ def run(md, output=None, live=False):
This tool allows you to convert markdown files into HTML slides,
either generating them once or launching a live server to continuously
update the output as changes are made to the markdown file.
"""
""",
context_settings={"help_option_names": ["-h", "--help"]},
)
@click.version_option(__version__, prog_name="moffee")
def cli():
pass

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "moffee"
version = "0.2.4"
version = "0.2.5"
description = "A slide maker that transform markdown into slides."
authors = ["Wenbo Pan <pixelwenbo@gmail.com>"]
readme = "README.md"
Expand Down Expand Up @@ -31,6 +31,7 @@ flake8 = "^7.1.1"
black = "^24.8.0"
pre-commit = "^3.8.0"
mkdocs = "^1.6.0"
mkdocs-callouts = "^1.14.0"

[tool.ipdb]
context = 15
Expand Down

0 comments on commit 9ec904f

Please sign in to comment.