Package: python-pygments
Version: 2.0.1+dfsg-1.1
Severity: minor
Tags: patch

Hello,

`pygmentize -h` documents the -g parameter but the manual page doesn't
provide information about it.

(-g can be used instead of the -l parameter).

I think the ma, page should provide this information so I copied-pasted
the documentation from `pygmentize -h` output into pygmentize.1 (see
pygmentize.1.diff in attachment).

In the attached diff, I updated the date too.


Stéphane

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-pygments depends on:
ii  python      2.7.9-1
pn  python:any  <none>

Versions of packages python-pygments recommends:
ii  python-chardet        2.3.0-1
ii  python-pkg-resources  18.4-2

Versions of packages python-pygments suggests:
pn  ttf-bitstream-vera  <none>

-- no debconf information
--- pygmentize.1.orig	2015-12-09 16:35:21.000000000 +0100
+++ pygmentize.1	2015-12-09 16:38:47.000000000 +0100
@@ -1,11 +1,11 @@
-.TH PYGMENTIZE 1 "February 15, 2007"
+.TH PYGMENTIZE 1 "December 9, 2015"
 
 .SH NAME
 pygmentize \- highlights the input file
 
 .SH SYNOPSIS
 .B \fBpygmentize\fP
-.RI  [-l\ \fI<lexer>\fP]\ [-F\ \fI<filter>\fP[:\fI<options>\fP]]\ [-f\ \fI<formatter>\fP]
+.RI  [-l\ \fI<lexer>\fP\ |\ -g]\ [-F\ \fI<filter>\fP[:\fI<options>\fP]]\ [-f\ \fI<formatter>\fP]
 .RI  [-O\ \fI<options>\fP]\ [-P\ \fI<option=value>\fP]\ [-o\ \fI<outfile>\fP]\ [\fI<infile>\fP]
 .br
 .B \fBpygmentize\fP
@@ -42,6 +42,10 @@
 Set the lexer name. If not given, the lexer is guessed from the extension of the
 input file name (this obviously doesn't work if the input is stdin).
 .TP
+.B \-g
+Attempt to guess the lexer from the file contents, or pass through as
+plain text if this fails (this can work for stdin).
+.TP
 .B \-F \fI<filter>\fP[:\fI<options>\fP]
 Add a filter to the token stream. You can give options in the same way as for
 -O after a colon (note: there must not be spaces around the colon).

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to