summaryrefslogtreecommitdiffstats
path: root/ctxopt.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2019-10-15 23:29:20 +0200
committerpgen <p.gen.progs@gmail.com>2019-10-15 23:29:20 +0200
commit1eff407070f604abde21d329b75c61e9d597a609 (patch)
tree84113e336fa6a374d6f4e2f608ea54d241b15af4 /ctxopt.c
parentb31cee32be6b91ec3a62df223022efaa807e3ab7 (diff)
Add comments
Diffstat (limited to 'ctxopt.c')
-rw-r--r--ctxopt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ctxopt.c b/ctxopt.c
index 00a53a5..b53f370 100644
--- a/ctxopt.c
+++ b/ctxopt.c
@@ -3076,6 +3076,12 @@ ctxopt_new_ctx(char * name, char * opts_specs)
bst_search(ctx, &contexts_bst, ctx_compare);
}
+/* ==================================================== */
+/* Display a usage screen limited to a specific context */
+/* IN: the context name. */
+/* IN: what to do after (continue or exit the program) */
+/* possible values: continue_after, exit_after. */
+/* ==================================================== */
void
ctxopt_ctx_disp_usage(char * ctx_name, usage_behaviour action)
{
@@ -3121,6 +3127,11 @@ ctxopt_ctx_disp_usage(char * ctx_name, usage_behaviour action)
exit(EXIT_FAILURE);
}
+/* ==================================================== */
+/* Display a full usage screen about all contexts. */
+/* IN: what to do after (continue or exit the program) */
+/* possible values: continue_after, exit_after. */
+/* ==================================================== */
void
ctxopt_disp_usage(usage_behaviour action)
{