Add parameter name back to the chsmack error message
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 22 Oct 2013 19:26:26 +0000 (22:26 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 22 Oct 2013 19:29:37 +0000 (22:29 +0300)
commitd98a04ff7ccbcfcf36d9d4d43de68448b70da9fa
tree0e5fba2e08be4b6f2a01d3bab459f755b3e31d14
parent18ebc2fe71da94599e45029d7b26144c6bbe7cb4
Add parameter name back to the chsmack error message

This patch add parameter name back to the error message. Instead
of relaying on hazardous longindex parameter of getopt_long(), a
look-up table is constructed to map short option to the corresponding
struct option entry.

Additionally, the basename of the application is added to the error
message. Also usage message is converted to use basename instead of
the full path name.
utils/chsmack.c