A mistyped option is discarded, and --auto quietly becomes review mode
pdf_signoff/cli.py:72–77 · context_settings
The command sets ignore_unknown_options and allow_extra_args so Onacol can consume nested config options like --general--log-level. The side effect is that any token Onacol does not recognise is thrown away without a diagnostic.
Because --autoo never sets automatic, the run falls through to interactive review, opens a loopback server, and blocks in session.wait_for_result() until killed. In the unattended agent workflow this tool is built for, one mistyped character turns a headless signing run into a process that hangs forever.
$ pdf-signoff t.pdf --signature sig.png \
--autoo --no-such-flag --open-browser false --output o1.pdf
(no error, no warning; process blocks in review mode
until SIGTERM at 120s)Check leftover ctx.args against the Onacol schema before any PDF inspection runs, and raise UsageError naming the offending token. Keep nested options working; refuse everything else.