Next: , Previous: File Arguments, Up: Command-Line Interfaces


4.6.2 Output of `--version'

The `--version' output is meant not only to give the program name, but to give a precise reference to where the actual sources for the program can be found. One asset of GNU is that all sources are available. It should never be difficult to discover and grab the proper sources for any given executable program or script.

A few maintenance scripts may depend of a rather precise format for `--version' output, which is now detailed. The output should consist of only one line containing many fields separated with a single space. >From left to right, these fields are:

If package is the package name and version are the package version numbers, then package-version.tar.gz should be the exact name of the archive file containing the distribution, exact even to the capitalization.

Here are some examples:

     cat - GNU textutils 1.19c
     msgfmt - GNU gettext 0.10.24
     GNU recode 3.4.2

We use `-' instead of words like `from', and avoid using the word `version' between names and numbers, in hope to escape the need of internationalising `--version' output.