control: reassign -1 feature-check control: retitle -1 feature-check: Rust: -O fails on values starting with dashes control: affects -1 src:confget control: tag -1 + upstream
On Thu, May 23, 2024 at 06:17:48PM +0000, Graham Inggs wrote: > Source: confget > Version: 5.1.2-1 > Severity: serious > User: debian...@lists.debian.org > Usertags: regression > > Hi Maintainer > > Sometime around 2024-02-27, confget's autopkgtest regressed in testing > [1]. I've copied what I hope is the relevant part of the log below. > > Regards > Graham > > > [1] https://ci.debian.net/packages/c/confget/testing/amd64/ > > > 95s autopkgtest [19:08:12]: test feature-check: [----------------------- > 95s error: unexpected argument '-q' found > 95s > 95s tip: to pass '-q' as a value, use '-- -q' > 95s > 95s Usage: feature-check [OPTIONS] [EXPRESSIONS]... > 95s autopkgtest [19:08:12]: test feature-check: -----------------------] Thanks, this was exactly what was needed to reveal the problem. The Rust implementation of feature-check that I switched the Debian package to recently uses the Clap library for command-line options parsing, and apparently Clap needs one more flag to be explicitly set on the definitions of optional arguments to allow their values to start with dashes. Thanks a lot for reporting this; it actually affects all my Clap-using Rust command-line utilities! (come to think of it, that includes the Rust implementation of confget itself, although the Debian package does not install that yet) G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@debian.org pe...@morpheusly.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
Description: PGP signature