|
SA Bugzilla – Full Text Bug Listing |
Summary: | The -D/--debug option is mis-parsed in sa-learn, spamassassin, and possibly other scripts. | ||
---|---|---|---|
Product: | Spamassassin | Reporter: | Bill Cole <billcole> |
Component: | spamassassin | Assignee: | SpamAssassin Developer Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | sidney, wolfsplat |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | 4.0.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Bill Cole
2019-01-02 20:19:56 UTC
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. Committed revision 1899918. Documentation change |