googlefonts / pyfontaine

Python tool to check font files for language/character set support
https://github.com/googlefonts/pyfontaine
GNU General Public License v3.0
104 stars 20 forks source link

Deduplicate help output #54

Closed davelab6 closed 9 years ago

davelab6 commented 10 years ago

There are two help outputs, one shown with no input:

$ pyfontaine 
pyFontaine 1.2.2 (https://github.com/davelab6/pyfontaine)
usage: pyfontaine [-h] font [font ...]

PyFontaine is a tool to analize your fonts or help to see glyphs analytics.

positional arguments:
  font

optional arguments:
  -h, --help  show this help message and exit
$

And one shown with the -h arg:

$ pyfontaine -h
usage: pyfontaine [-h] [--update-data] [--disable-unames] [--missing] [--text]
                  [--xml] [--json] [--wiki] [--csv] [--show-hilbert]
                  [--set SET] [--collections COLLECTIONS] [-V]
                  font [font ...]

PyFontaine is a tool to analize your fonts or help to see glyphs analytics.

positional arguments:
  font

optional arguments:
  -h, --help            show this help message and exit
  --update-data         Clean application cache
  --disable-unames      This will prevent using Unicode names data
  --missing             Print additionally a list of each unicode value that
                        is missing from a character set
  --text                Output information in plain text
  --xml                 Output information into XML
  --json                Output information in JSON
  --wiki                Print information in wikipedia format
  --csv                 Output font coverage information in CSV. If glyphs
                        have been passed to script then it shows rows with
                        character set and values True if glyph exists in
                        collections
  --show-hilbert        Create PNG files represented coveragin of font charset
                        in coverage_pngs directory
  --set SET             Specify the sets based on either common or native name
  --collections COLLECTIONS
                        Specify collections of charmaps to print
  -V, --version         show program's version number and exit
$

The first shouldn't happen, it should just be the 2nd one :)

davelab6 commented 9 years ago

The --help and -h args no longer work

davelab6 commented 9 years ago
$ pyfontaine -h
error: too few arguments
vitalyvolkov commented 9 years ago

https://github.com/davelab6/pyfontaine/commit/44d563cad2cc74185e151cefe2ee37e9e1579130

vitaly@piranha:~/Documents/pyfontaine$ pyfontaine
pyFontaine 1.3.3 (https://github.com/davelab6/pyfontaine)
usage: pyfontaine [-h] [--update-data] [--disable-unames] [--missing] [--text]
                  [--xml] [--json] [--wiki] [--csv] [--show-hilbert]
                  [--set SET] [--text-compact] [--collections COLLECTIONS]
                  [--new-glyphmap-txt] [--new-charset-txt] [--new-charset-py]
                  [--new-glyphmap-py] [--compare-chars] [--compare-glyphs]
                  [-V]
                  font [font ...]

pyfontaine compares fonts, characters or glyphnames to defined glyph lists or
character sets.

positional arguments:
  font

optional arguments:
  -h, --help            show this help message and exit
  --update-data         Clean application cache
  --disable-unames      This will prevent using Unicode names data
  --missing             Print additionally a list of each unicode value that
                        is missing from a character set
  --text                Output information in plain text
  --xml                 Output information into XML
  --json                Output information in JSON
  --wiki                Print information in wikipedia format
  --csv                 Output font coverage information in CSV. If glyphs
                        have been passed to script then it shows rows with
                        character set and values True if glyph exists in
                        collections
  --show-hilbert        Create PNG files represented coveragin of font charset
                        in coverage_pngs directory
  --set SET             Specify the sets based on either common or native name
  --text-compact
  --collections COLLECTIONS
                        Specify collections of charsets to print
  --new-glyphmap-txt    Output a glyphlist from the glyphs present in a font
                        to a text file.
  --new-charset-txt     Output a list of characters from the characters
                        present in a font to a text file.
  --new-charset-py      Output a list of characters from the characters
                        present in a font to a python file.
  --new-glyphmap-py     Output a list of glyphs from the glyphs present in a
                        font to a python file.
  --compare-chars       Compare chars in fonts.
  --compare-glyphs      Compare glyphs in fonts.
  -V, --version         show program's version number and exit
vitaly@piranha:~/Documents/pyfontaine$ pyfontaine -h
usage: pyfontaine [-h] [--update-data] [--disable-unames] [--missing] [--text]
                  [--xml] [--json] [--wiki] [--csv] [--show-hilbert]
                  [--set SET] [--text-compact] [--collections COLLECTIONS]
                  [--new-glyphmap-txt] [--new-charset-txt] [--new-charset-py]
                  [--new-glyphmap-py] [--compare-chars] [--compare-glyphs]
                  [-V]
                  font [font ...]

pyfontaine compares fonts, characters or glyphnames to defined glyph lists or
character sets.

positional arguments:
  font

optional arguments:
  -h, --help            show this help message and exit
  --update-data         Clean application cache
  --disable-unames      This will prevent using Unicode names data
  --missing             Print additionally a list of each unicode value that
                        is missing from a character set
  --text                Output information in plain text
  --xml                 Output information into XML
  --json                Output information in JSON
  --wiki                Print information in wikipedia format
  --csv                 Output font coverage information in CSV. If glyphs
                        have been passed to script then it shows rows with
                        character set and values True if glyph exists in
                        collections
  --show-hilbert        Create PNG files represented coveragin of font charset
                        in coverage_pngs directory
  --set SET             Specify the sets based on either common or native name
  --text-compact
  --collections COLLECTIONS
                        Specify collections of charsets to print
  --new-glyphmap-txt    Output a glyphlist from the glyphs present in a font
                        to a text file.
  --new-charset-txt     Output a list of characters from the characters
                        present in a font to a text file.
  --new-charset-py      Output a list of characters from the characters
                        present in a font to a python file.
  --new-glyphmap-py     Output a list of glyphs from the glyphs present in a
                        font to a python file.
  --compare-chars       Compare chars in fonts.
  --compare-glyphs      Compare glyphs in fonts.
  -V, --version         show program's version number and exit