cert_create: update help message
The help message printed by the cert_create tool using the command
line option -h (or --help) does not correctly list all the available
command line options.

This patch reworks the print_help() function to print the help
messages in a data driven approach. For each command line option
registered, an optional help message can be specified, which will
be printed by print_help().

Help messages for the TBBR options (certificates, keys and images)
are also provided.

Fix a small bug in the short options string passed to getopt_long:
the ':' was missing in the '-a' option (this option must take an
argument).

Fixes ARM-software/tf-issues#337

Change-Id: I9d08c2dfd349022808fcc884724f677eefdc1452
1 parent d0c104e commit 159807e2faa50a2940f09d57dfa6132220508cce
@Juan Castillo Juan Castillo authored on 15 Dec 2015
Showing 12 changed files
View
tools/cert_create/include/cert.h
View
tools/cert_create/include/cmd_opt.h
View
tools/cert_create/include/ext.h
View
tools/cert_create/include/key.h
View
tools/cert_create/src/cert.c
View
tools/cert_create/src/cmd_opt.c
View
tools/cert_create/src/ext.c
View
tools/cert_create/src/key.c
View
tools/cert_create/src/main.c
View
tools/cert_create/src/tbbr/tbb_cert.c
View
tools/cert_create/src/tbbr/tbb_ext.c
View
tools/cert_create/src/tbbr/tbb_key.c