Skip to content

Allow --help when no CD-DA drive is present - #703

Open
ajzrva-sys wants to merge 1 commit into
whipper-team:developfrom
ajzrva-sys:feature/issue-164-help-without-drive
Open

ajzrva-sys wants to merge 1 commit into
whipper-team:developfrom
ajzrva-sys:feature/issue-164-help-without-drive

Conversation

@ajzrva-sys

@ajzrva-sys ajzrva-sys commented Sep 18, 2026 •

Copy link
Copy Markdown

whipper cd --help fails without an optical drive because device validation runs before help is shown.

Allow -h and --help through, including subcommand help. Commands that need a drive still fail when none is available.

Includes tests for help, default devices and missing devices.

Fixes #164

Checked eb15b70 on macOS arm64 / Python 3.11: 123 unit tests pass. No optical-drive test in this run.

BaseCommand no longer requires a drive while building the parser.
--help / -h (including subcommand help such as `whipper cd rip --help`)
exit successfully without hardware. Actual commands still raise
"No CD-DA drives found!" when no device is available.

Rip.add_arguments no longer looks up drive info when opts.device is
None, and _CD.do() reports a clear error if no device was resolved.

Signed-off-by: ajzrva-sys <ajzrva-sys@users.noreply.github.com>
Fixes whipper-team#164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not possible to see whipper cd --help messages without optical drive

1 participant