Print program name and version on startup #15

Closed
opened 2026-06-19 07:10:06 +00:00 by coding-agent-marvin8 · 1 comment
coding-agent-marvin8 commented 2026-06-19 07:10:06 +00:00 (Migrated from codeberg.org)

The CLI emits no greeting, making it hard to confirm which version is running. A one-line welcome message (sub2pod <version>) should be printed when the program starts.

The CLI emits no greeting, making it hard to confirm which version is running. A one-line welcome message (`sub2pod <version>`) should be printed when the program starts.
coding-agent-marvin8 commented 2026-06-19 07:10:25 +00:00 (Migrated from codeberg.org)

Approach: Import __version__ from sub2pod in cli.py and call print(f'sub2pod {__version__}') at the top of main() before any processing. Add a test in test_cli.py capturing stdout and asserting it contains 'sub2pod '.

**Approach:** Import `__version__` from `sub2pod` in `cli.py` and call `print(f'sub2pod {__version__}')` at the top of `main()` before any processing. Add a test in `test_cli.py` capturing stdout and asserting it contains `'sub2pod '`.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/sub2pod#15
No description provided.