Skip to content

Getopt::Long warnings in sympa.pl #1968

@woodfighter

Description

@woodfighter

Version

Sympa 6.2.76
Getopt::Long v2.58

and a user reports via the mailing list on the packaged version from Debian (which is a bit contradictory, they say 6.2.76 but the packaged version in Debian 12 would be 6.2.70)

Installation method

Freebsd ports

Expected behavior

no unnecessary warnings when running sympa.pl

Actual behavior

sympa.pl warns about

Duplicate specification "config|config|f|f=s" for option "config"
Duplicate specification "config|config|f|f=s" for option "f"
Duplicate specification "debug|debug|d|d" for option "debug"
Duplicate specification "debug|debug|d|d" for option "d"
Duplicate specification "lang|lang|l|l=s" for option "lang"
Duplicate specification "lang|lang|l|l=s" for option "l"
Duplicate specification "log_level|log_level=s" for option "log_level"
Duplicate specification "mail|mail|m|m" for option "mail"
Duplicate specification "mail|mail|m|m" for option "m"
Duplicate specification "noout|noout" for option "noout"

Steps to reproduce

calling sympa.pl check or probably most other options

Additional information

If I read this correctly the options defined in src/lib/Sympa/CLI.pm are duplicated in src/sbin/sympa.pl.in but I'm not quite sure if removing the duplicates from the latter would be without side issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions