fix(cli): wire verbose flag through entry point
Extract argparse into main() and point console script at it. The -v/--verbose flag was dead because the entry point called run() directly, bypassing the __main__ argparse block entirely.
This commit is contained in:
5 files changed
+60
-3
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ dev = [
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
librofm-downloader = "librofm_downloader.cli:run"
|
||||
librofm-downloader = "librofm_downloader.cli:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["librofm_downloader*"]
|
||||
|
||||
Reference in new issue
Block a user