Package: apt-file
Version: 2.5.1
Severity: minor

Hi,

(note to self?)

So far I noticed two issues; first the manpage suggests the "file"
argument with -f is optional:

"""
apt-file -f [ options ] search [ file ... ]
"""

But omitting a file does not have a sane default; it appears to simply
give a "match nothing" pattern.

"""
$ echo lintian/checks/debian | apt-file -f search 
$ echo lintian/checks/debian | apt-file -f search  -
lintian: /usr/share/lintian/checks/debian-readme
lintian: /usr/share/lintian/checks/debian-readme.desc
lintian: /usr/share/lintian/checks/debian-source-dir
lintian: /usr/share/lintian/checks/debian-source-dir.desc
"""

Secondly, the extend description of -f suggests the file argument
should come immediately after "-f"[1].  In fact, the file argument must
always come after the (search) action (as the synopsis reads).  So anyone
skipping the synopsis are likely to get this wrong.

~Niels

[1]

"""
  -f, --from-file
 
    [...] Use -f - for stdin. [...]
              ^^^^
"""


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to