py-compile: normalize error and help messages
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 8 Jun 2011 20:00:38 +0000 (22:00 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 9 Jun 2011 13:58:12 +0000 (15:58 +0200)
commit429b748cecaa046d11f5a93bea0c93c809179ed6
tree91a8f6d4dd51bbec84f07649ef343959a4e89111
parenta716df2ed5f62889d3b442d5ecc5e2edd6794ee4
py-compile: normalize error and help messages

* lib/py-compile: Now error messages do not begin with a capital
letter, nor end with a period, as per GNU standards.  Prepend the
error messages with the name of the script, not with its path.
When an invalid usage is recognized, always display the customary
message "Try `py-compile --help' ..." on a line of its own.
($me): New variable, containing the name of the
program, i.e., `py-compile'.  Use it throughout.
(usage_error): New function, used to display error messages about
invalid usage.
* tests/py-compile-usage.test: Extend and tighten accordingly.
ChangeLog
lib/py-compile
tests/py-compile-usage.test