Package: sopv-gpgv
Version: 0.1.4-1
Severity: normal

Hi!

While playing with sopv-gpgv, I noticed the following unexpected
behavior:

  ,---
  $ sopv-gpgv version --ext
  sopv-gpgv 0.1.4
  gpgv (GnuPG) 2.2.46
  libgcrypt 1.11.0
  Copyright (C) 2024 g10 Code GmbH
  License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.
  $ sopv-gpgv version --sop
  usage: sopv-gpgv version [-h] [--debug] [--backend | --extended | --sop-spec 
| --sopv]
  sopv-gpgv version: error: ambiguous option: --sop could match --sop-spec, 
--sopv
  `---

Here --ext is accepted for --extended, while I'd expect it to be
rejected. Given how --sop behaves, I guess this is due to supporting
option abbreviation to uniqueness in the options parser, which I think
is an anti-pattern, as that allows for current usage that might be
unique, but then can be problematic for extensibility with future
additions that will not be unique then, and cause these invocations
to fail.

Thanks,
Guillem

Reply via email to