Skip to content

Commit 2467be2

Browse files
authored
feat(cli): Add shiny --version (#1387)
1 parent 52cc2db commit 2467be2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shiny/_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818

1919
import shiny
2020

21-
from . import _autoreload, _hostenv, _static, _utils
21+
from . import __version__, _autoreload, _hostenv, _static, _utils
2222
from ._docstring import no_example
2323
from ._typing_extensions import NotRequired, TypedDict
2424
from .express import is_express_app
2525
from .express._utils import escape_to_var_name
2626

2727

2828
@click.group("main")
29+
@click.version_option(__version__)
2930
def main() -> None:
3031
pass
3132

0 commit comments

Comments
 (0)