mpd-now-playable/src/mpd_now_playable
Götz 3411a5a34d cli: exit early for --help/--version without starting app
The CLI previously always started full app initialization (config load, listener
setup, receiver construction, and debug output) even when invoked with `-h`,
`--help`, `-v`, or `--version`. That made basic introspection noisy and buried
the requested output in startup logs.

Add early argument checks in `main()` so help/version requests are handled
immediately and the process exits without starting the app. Introduce a small
`print_help()` helper for consistent usage output.

This improves terminal UX and makes debugging/invocation checks much clearer by
keeping `-h` and `-v` output focused and predictable.
2026-02-28 15:44:49 -05:00
..
config Fix surprise incompatibility with websockets 14 :/ 2025-01-23 18:56:43 +11:00
mpd Make Queue.current nullable, since MPD may be stopped 2025-03-05 13:16:48 +11:00
playback Make Queue.current nullable, since MPD may be stopped 2025-03-05 13:16:48 +11:00
receivers Convert MPD_LOGO to the right type for ObjC 2025-03-05 13:17:36 +11:00
song Wrap Song in a broader Playback state object with stuff like volume and repeat mode 2024-07-26 09:53:17 +10:00
tools Update Mypy so I can use PEP 695 type param syntax 2024-07-30 10:09:33 +10:00
__init__.py Initial commit of source - working, but needs stubs for Cocoa 2023-11-27 15:49:33 +11:00
cache.py Update Mypy so I can use PEP 695 type param syntax 2024-07-30 10:09:33 +10:00
cli.py cli: exit early for --help/--version without starting app 2026-02-28 15:44:49 -05:00
player.py Wrap Song in a broader Playback state object with stuff like volume and repeat mode 2024-07-26 09:53:17 +10:00
py.typed Initial commit of source - working, but needs stubs for Cocoa 2023-11-27 15:49:33 +11:00
song_receiver.py Update Mypy so I can use PEP 695 type param syntax 2024-07-30 10:09:33 +10:00