summaryrefslogtreecommitdiff
path: root/tools/cert_create/include/cmd_opt.h
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2016-01-13 11:42:30 +0000
committerdanh-arm <dan.handley@arm.com>2016-01-13 11:42:30 +0000
commit6cf9b6ac547c21cf045d3089bd9437f0c6aae854 (patch)
tree5e3376495a5db59308c53482e0e31884c375c94b /tools/cert_create/include/cmd_opt.h
parente123b2a37aa8c0be445bd1f0284b3907b91e5b29 (diff)
parent159807e2faa50a2940f09d57dfa6132220508cce (diff)
Merge pull request #484 from jcastillo-arm/jc/tf-issues/337
cert_create: update help message
Diffstat (limited to 'tools/cert_create/include/cmd_opt.h')
-rw-r--r--tools/cert_create/include/cmd_opt.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/cert_create/include/cmd_opt.h b/tools/cert_create/include/cmd_opt.h
index ca48d7ca..389aa233 100644
--- a/tools/cert_create/include/cmd_opt.h
+++ b/tools/cert_create/include/cmd_opt.h
@@ -42,9 +42,16 @@ enum {
CMD_OPT_EXT
};
+/* Structure to define a command line option */
+typedef struct cmd_opt_s {
+ struct option long_opt;
+ const char *help_msg;
+} cmd_opt_t;
+
/* Exported API*/
-int cmd_opt_add(const char *name, int has_arg, int val);
+void cmd_opt_add(const cmd_opt_t *cmd_opt);
const struct option *cmd_opt_get_array(void);
const char *cmd_opt_get_name(int idx);
+const char *cmd_opt_get_help_msg(int idx);
#endif /* CMD_OPT_H_ */