[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU coding standards for the --version option

From: Steve Chaplin
Subject: GNU coding standards for the --version option
Date: Tue, 25 Nov 2003 00:59:16 +0800

libtool (unlike automake and autoconf) does not follow GNU coding 
standards for the --version option.
Section 4.6 Standards for command line interfaces.
"The first line is meant to be easy for a program to parse; the version
number proper starts after the last space."

$ automake --version | head -1
automake (GNU automake) 1.7.8

$ autoconf --version | head -1
autoconf (GNU Autoconf) 2.57

$ libtool --version | head -1
ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)

So a program would parse the versions as
automake 1.7.8
autoconf 2.57
libtool  22     ?  Version number is incorrectly parsed

changing the format to
ltmain.sh (GNU libtool) (1.1220.2.1 2003/04/14 22:48:00) 1.5
or putting "(1.1220.2.1 2003/04/14 22:48:00)" on another line
would solve the problem.

Steve Chaplin <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]