You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2022/04/16 10:14:46 UTC
[Bug 7675] The -D/--debug option is mis-parsed in sa-learn, spamassassin, and possibly other scripts.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7675
Sidney Markowitz <si...@sidney.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sidney@sidney.com
--- Comment #1 from Sidney Markowitz <si...@sidney.com> ---
It is not possible to distinguish between a pathname and a debug area name.
There could be a file in the current directory whose name is a debug area name,
making it truly ambiguous. The two solutions I see are to either 1) document in
the perldoc description of -D that when it is the last option on the command
line before a path, to specify all areas use either -- '' or 'all' or 2) make
the area argument to -D not optional.
I don't like the second alternative because it will break what people are used
to and may have put in scripts. Note that, for example spamassassin -D -L ...
silently changes behavior because when the argument to -D is not optional '-L'
is not recognized as a new option and unknown debug areas silently do nothing.
The first alternative seems good enough, and that makes it just a documentation
change.
--
You are receiving this mail because:
You are the assignee for the bug.