Skip to content

Commit b124e45

Browse files
committed
Changed cli main location
1 parent e7f8d1e commit b124e45

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
*.new
66
*.code-workspace
77
dist/
8+
*.snap

olman-cli/main.py renamed to olman-cli/olman_cli/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#! /bin/python3
2+
13
import argparse
24

35
from olman_cli.info import info
@@ -14,6 +16,7 @@ def main():
1416
prog="olman",
1517
description="OpenSCAD Library Manager",
1618
)
19+
main_parser.set_defaults(func=lambda x: main_parser.print_help())
1720

1821
subparsers = main_parser.add_subparsers()
1922

olman-cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ requires = ["poetry-core"]
1515
build-backend = "poetry.core.masonry.api"
1616

1717
[tool.poetry.scripts]
18-
olman = 'main:main'
18+
olman = 'olman_cli.__main__:main'

0 commit comments

Comments
 (0)