]> git.ipfire.org Git - thirdparty/autoconf.git/commit
getopt: fix diagnostic for missing mandatory option argument
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Jan 2012 18:04:32 +0000 (19:04 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Jan 2012 18:04:32 +0000 (19:04 +0100)
commit5bc3e85e91927fd7fa048a6a53d01abcf9978e6a
tree6ac5eb33e9bcd775c4d4004f2d0a84dbec8f75c5
parent28fd1f4aa49c1180919a12ba0a793204fc1fcebe
getopt: fix diagnostic for missing mandatory option argument

Before this change, an incorrect command line usage:
  "autom4te --output"
triggered broken diagnostic like:
  "autom4te: unrecognized option `--output'"
instead of the expected and correct:
  "autom4te: option `--output' requires an argument"

* lib/Autom4te/General.pm (getopt): Give correct diagnostic in
case of usage errors due to missing arguments for options for
which they are mandatory.  Code basically copied from automake's
'parse_arguments' private subroutine.
ChangeLog
lib/Autom4te/General.pm