fileformat is a tool for detecting file formats.

Usage:

fileformat <file> ... [-m | --mime] [--formats <directory>]
    Displays format name, description and type
    (Audio, Video, Archives, etc.) for each specified file.

    With the '-m' or '--mime' option, the program also shows
    the MIME type and its description.

    Format descriptions are contained in a special JSON file,
    whose path is determined by your Amalthea library installation.
    If the library was compiled with the ldc2 compiler, the path is:
    /etc/amalthea-ldc2/fileformats.json

    The '--formats' option allows you to specify a directory
    containing JSON files that describe additional file formats.

    Example:
        $ fileformat image.jpg -m
        Displays information about the file format
        and its MIME type for 'image.jpg'.

fileformat --version
    Displays the version of the tool.

fileformat --help
    Displays this help text.
