diff --git a/src/codex32/_cli_input.py b/src/codex32/_cli_input.py index 53ba5b9..eb13b4f 100644 --- a/src/codex32/_cli_input.py +++ b/src/codex32/_cli_input.py @@ -805,6 +805,8 @@ def allowed(candidate: CorrectionCandidate) -> bool: if one: return [artifact] if isinstance(artifact, Secret) and not basis: + if accepted: + _stderr("Complete secret supplied; using it instead of the accepted shares.") return [artifact] if not accepted: required = artifact.header.threshold diff --git a/tests/test_cli.py b/tests/test_cli.py index 2978174..b1ba660 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1094,6 +1094,7 @@ def answer(prompt: str) -> str: assert "Rejected:" not in captured.err assert "Share 1 of 3 accepted." in captured.err assert "Share 2 of 3 accepted." in captured.err + assert "Complete secret supplied; using it instead of the accepted shares." in captured.err first_prompt = ( "Enter a codex32 string:\n> " if command[0] == "secret" else "Enter a codex32 string:\n> MS1" )