context            90 daemons/attrd/pacemaker-attrd.c     GOptionContext *context = NULL;
context            92 daemons/attrd/pacemaker-attrd.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context            93 daemons/attrd/pacemaker-attrd.c     pcmk__add_main_args(context, entries);
context            94 daemons/attrd/pacemaker-attrd.c     return context;
context           108 daemons/attrd/pacemaker-attrd.c     GOptionContext *context = build_arg_context(args, &output_group);
context           115 daemons/attrd/pacemaker-attrd.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           212 daemons/attrd/pacemaker-attrd.c     pcmk__free_arg_context(context);
context           168 daemons/based/pacemaker-based.c     GOptionContext *context = NULL;
context           170 daemons/based/pacemaker-based.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           171 daemons/based/pacemaker-based.c     pcmk__add_main_args(context, entries);
context           172 daemons/based/pacemaker-based.c     return context;
context           188 daemons/based/pacemaker-based.c     GOptionContext *context = build_arg_context(args, &output_group);
context           193 daemons/based/pacemaker-based.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           294 daemons/based/pacemaker-based.c     pcmk__free_arg_context(context);
context            86 daemons/controld/pacemaker-controld.c     GOptionContext *context = build_arg_context(args, &output_group);
context            91 daemons/controld/pacemaker-controld.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           176 daemons/controld/pacemaker-controld.c     pcmk__free_arg_context(context);
context           520 daemons/execd/cts-exec-helper.c     GOptionContext *context = NULL;
context           522 daemons/execd/cts-exec-helper.c     context = pcmk__build_arg_context(args, NULL, group, NULL);
context           524 daemons/execd/cts-exec-helper.c     pcmk__add_main_args(context, basic_entries);
context           525 daemons/execd/cts-exec-helper.c     pcmk__add_arg_group(context, "api-call", "API Call Options:",
context           528 daemons/execd/cts-exec-helper.c     return context;
context           545 daemons/execd/cts-exec-helper.c     GOptionContext *context = build_arg_context(args, NULL);
context           547 daemons/execd/cts-exec-helper.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           619 daemons/execd/cts-exec-helper.c     pcmk__free_arg_context(context);
context           409 daemons/execd/pacemaker-execd.c     GOptionContext *context = NULL;
context           411 daemons/execd/pacemaker-execd.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           412 daemons/execd/pacemaker-execd.c     pcmk__add_main_args(context, entries);
context           413 daemons/execd/pacemaker-execd.c     return context;
context           431 daemons/execd/pacemaker-execd.c     GOptionContext *context = NULL;
context           444 daemons/execd/pacemaker-execd.c     context = build_arg_context(args, &output_group);
context           449 daemons/execd/pacemaker-execd.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           561 daemons/execd/pacemaker-execd.c     pcmk__free_arg_context(context);
context           631 daemons/fenced/cts-fence-helper.c     GOptionContext *context = NULL;
context           633 daemons/fenced/cts-fence-helper.c     context = pcmk__build_arg_context(args, NULL, group, NULL);
context           634 daemons/fenced/cts-fence-helper.c     pcmk__add_main_args(context, entries);
context           635 daemons/fenced/cts-fence-helper.c     return context;
context           646 daemons/fenced/cts-fence-helper.c     GOptionContext *context = build_arg_context(args, NULL);
context           648 daemons/fenced/cts-fence-helper.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           691 daemons/fenced/cts-fence-helper.c     pcmk__free_arg_context(context);
context           516 daemons/fenced/pacemaker-fenced.c     GOptionContext *context = NULL;
context           518 daemons/fenced/pacemaker-fenced.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           519 daemons/fenced/pacemaker-fenced.c     pcmk__add_main_args(context, entries);
context           520 daemons/fenced/pacemaker-fenced.c     return context;
context           535 daemons/fenced/pacemaker-fenced.c     GOptionContext *context = build_arg_context(args, &output_group);
context           540 daemons/fenced/pacemaker-fenced.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           648 daemons/fenced/pacemaker-fenced.c     pcmk__free_arg_context(context);
context           259 daemons/pacemakerd/pacemakerd.c     GOptionContext *context = NULL;
context           261 daemons/pacemakerd/pacemakerd.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           262 daemons/pacemakerd/pacemakerd.c     pcmk__add_main_args(context, entries);
context           263 daemons/pacemakerd/pacemakerd.c     return context;
context           277 daemons/pacemakerd/pacemakerd.c     GOptionContext *context = build_arg_context(args, &output_group);
context           293 daemons/pacemakerd/pacemakerd.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           476 daemons/pacemakerd/pacemakerd.c     pcmk__free_arg_context(context);
context            67 daemons/schedulerd/pacemaker-schedulerd.c     GOptionContext *context = NULL;
context            77 daemons/schedulerd/pacemaker-schedulerd.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context            78 daemons/schedulerd/pacemaker-schedulerd.c     pcmk__add_main_args(context, extra_prog_entries);
context            79 daemons/schedulerd/pacemaker-schedulerd.c     return context;
context            91 daemons/schedulerd/pacemaker-schedulerd.c     GOptionContext *context = build_arg_context(args, &output_group);
context            97 daemons/schedulerd/pacemaker-schedulerd.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           175 daemons/schedulerd/pacemaker-schedulerd.c     pcmk__free_arg_context(context);
context            76 include/crm/common/cmdline_internal.h pcmk__free_arg_context(GOptionContext *context);
context            87 include/crm/common/cmdline_internal.h void pcmk__add_main_args(GOptionContext *context, const GOptionEntry entries[]);
context           101 include/crm/common/cmdline_internal.h void pcmk__add_arg_group(GOptionContext *context, const char *name,
context           184 include/crm/common/cmdline_internal.h pcmk__force_args(GOptionContext *context, GError **error, const char *format, ...);
context            65 lib/common/cmdline.c     GOptionContext *context;
context            82 lib/common/cmdline.c     context = g_option_context_new(param_string);
context            83 lib/common/cmdline.c     g_option_context_set_summary(context, common_args->summary);
context            84 lib/common/cmdline.c     g_option_context_set_description(context,
context            86 lib/common/cmdline.c     g_option_context_set_main_group(context, main_group);
context           106 lib/common/cmdline.c         g_option_context_add_group(context, *output_group);
context           111 lib/common/cmdline.c     return context;
context           115 lib/common/cmdline.c pcmk__free_arg_context(GOptionContext *context) {
context           116 lib/common/cmdline.c     if (context == NULL) {
context           120 lib/common/cmdline.c     g_option_context_free(context);
context           124 lib/common/cmdline.c pcmk__add_main_args(GOptionContext *context, const GOptionEntry entries[])
context           126 lib/common/cmdline.c     GOptionGroup *main_group = g_option_context_get_main_group(context);
context           132 lib/common/cmdline.c pcmk__add_arg_group(GOptionContext *context, const char *name,
context           140 lib/common/cmdline.c     g_option_context_add_group(context, group);
context           356 lib/common/cmdline.c pcmk__force_args(GOptionContext *context, GError **error, const char *format, ...) {
context           374 lib/common/cmdline.c     retval = g_option_context_parse_strv(context, &extra_args, error);
context           275 tools/attrd_updater.c     GOptionContext *context = NULL;
context           277 tools/attrd_updater.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           279 tools/attrd_updater.c     pcmk__add_arg_group(context, "required", "Required Arguments:",
context           281 tools/attrd_updater.c     pcmk__add_arg_group(context, "command", "Command:",
context           283 tools/attrd_updater.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           285 tools/attrd_updater.c     pcmk__add_arg_group(context, "deprecated", "Deprecated Options:",
context           288 tools/attrd_updater.c     return context;
context           301 tools/attrd_updater.c     GOptionContext *context = build_arg_context(args, &output_group);
context           305 tools/attrd_updater.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           373 tools/attrd_updater.c     pcmk__free_arg_context(context);
context           439 tools/cibadmin.c     GOptionContext *context = NULL;
context           491 tools/cibadmin.c     context = pcmk__build_arg_context(args, NULL, NULL, "<command>");
context           492 tools/cibadmin.c     g_option_context_set_description(context, desc);
context           494 tools/cibadmin.c     pcmk__add_main_args(context, extra_prog_entries);
context           496 tools/cibadmin.c     pcmk__add_arg_group(context, "commands", "Commands:", "Show command help",
context           498 tools/cibadmin.c     pcmk__add_arg_group(context, "data", "Data:", "Show data help",
context           500 tools/cibadmin.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           502 tools/cibadmin.c     return context;
context           518 tools/cibadmin.c     GOptionContext *context = build_arg_context(args);
context           520 tools/cibadmin.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           526 tools/cibadmin.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context           546 tools/cibadmin.c         pcmk__free_arg_context(context);
context           578 tools/cibadmin.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context           878 tools/cibadmin.c     pcmk__free_arg_context(context);
context           716 tools/crm_attribute.c     GOptionContext *context = NULL;
context           749 tools/crm_attribute.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           750 tools/crm_attribute.c     pcmk__add_main_args(context, extra_prog_entries);
context           751 tools/crm_attribute.c     g_option_context_set_description(context, description);
context           753 tools/crm_attribute.c     pcmk__add_arg_group(context, "selections", "Selecting attributes:",
context           755 tools/crm_attribute.c     pcmk__add_arg_group(context, "command", "Commands:",
context           757 tools/crm_attribute.c     pcmk__add_arg_group(context, "additional", "Additional options:",
context           759 tools/crm_attribute.c     pcmk__add_arg_group(context, "deprecated", "Deprecated Options:",
context           762 tools/crm_attribute.c     return context;
context           778 tools/crm_attribute.c     GOptionContext *context = build_arg_context(args, &output_group);
context           781 tools/crm_attribute.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           969 tools/crm_attribute.c     pcmk__free_arg_context(context);
context           226 tools/crm_diff.c     GOptionContext *context = NULL;
context           239 tools/crm_diff.c     context = pcmk__build_arg_context(args, NULL, NULL, NULL);
context           240 tools/crm_diff.c     g_option_context_set_description(context, description);
context           242 tools/crm_diff.c     pcmk__add_arg_group(context, "xml", "Original XML:",
context           244 tools/crm_diff.c     pcmk__add_arg_group(context, "operation", "Operation:",
context           246 tools/crm_diff.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           248 tools/crm_diff.c     return context;
context           262 tools/crm_diff.c     GOptionContext *context = build_arg_context(args);
context           266 tools/crm_diff.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           275 tools/crm_diff.c         pcmk__free_arg_context(context);
context           330 tools/crm_diff.c     pcmk__free_arg_context(context);
context            70 tools/crm_error.c     GOptionContext *context = NULL;
context            72 tools/crm_error.c     context = pcmk__build_arg_context(args, "text (default), xml", group,
context            74 tools/crm_error.c     pcmk__add_main_args(context, entries);
context            75 tools/crm_error.c     return context;
context            91 tools/crm_error.c     GOptionContext *context = build_arg_context(args, &output_group);
context            94 tools/crm_error.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           165 tools/crm_error.c     pcmk__free_arg_context(context);
context            81 tools/crm_mon.c static GOptionContext *context = NULL;
context          1187 tools/crm_mon.c     GOptionContext *context = NULL;
context          1257 tools/crm_mon.c     context = pcmk__build_arg_context(args, fmts, group, NULL);
context          1258 tools/crm_mon.c     pcmk__add_main_args(context, extra_prog_entries);
context          1259 tools/crm_mon.c     g_option_context_set_description(context, desc);
context          1261 tools/crm_mon.c     pcmk__add_arg_group(context, "display", "Display Options:",
context          1263 tools/crm_mon.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context          1265 tools/crm_mon.c     pcmk__add_arg_group(context, "deprecated", "Deprecated Options:",
context          1268 tools/crm_mon.c     return context;
context          1414 tools/crm_mon.c     context = build_arg_context(args, &output_group);
context          1431 tools/crm_mon.c     if (!pcmk__force_args(context, &error, "%s --html-title \"Cluster Status\"",
context          1436 tools/crm_mon.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context          2150 tools/crm_mon.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context          2156 tools/crm_mon.c     pcmk__free_arg_context(context);
context           756 tools/crm_node.c     GOptionContext *context = NULL;
context           766 tools/crm_node.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           771 tools/crm_node.c     pcmk__add_main_args(context, extra_prog_entries);
context           773 tools/crm_node.c     pcmk__add_arg_group(context, "commands", "Commands:",
context           775 tools/crm_node.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           777 tools/crm_node.c     return context;
context           788 tools/crm_node.c     GOptionContext *context = build_arg_context(args, &output_group);
context           791 tools/crm_node.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           813 tools/crm_node.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context           865 tools/crm_node.c     pcmk__free_arg_context(context);
context          1372 tools/crm_resource.c     GOptionContext *context = NULL;
context          1414 tools/crm_resource.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context          1415 tools/crm_resource.c     g_option_context_set_description(context, description);
context          1420 tools/crm_resource.c     pcmk__add_main_args(context, extra_prog_entries);
context          1422 tools/crm_resource.c     pcmk__add_arg_group(context, "queries", "Queries:",
context          1424 tools/crm_resource.c     pcmk__add_arg_group(context, "commands", "Commands:",
context          1426 tools/crm_resource.c     pcmk__add_arg_group(context, "locations", "Locations:",
context          1428 tools/crm_resource.c     pcmk__add_arg_group(context, "advanced", "Advanced:",
context          1430 tools/crm_resource.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context          1432 tools/crm_resource.c     return context;
context          1446 tools/crm_resource.c     GOptionContext *context = NULL;
context          1454 tools/crm_resource.c     context = build_arg_context(args, &output_group);
context          1457 tools/crm_resource.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context          2090 tools/crm_resource.c     g_option_context_free(context);
context            85 tools/crm_rule.c     GOptionContext *context = NULL;
context            87 tools/crm_rule.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context            89 tools/crm_rule.c     pcmk__add_arg_group(context, "modes", "Modes (mutually exclusive):",
context            91 tools/crm_rule.c     pcmk__add_arg_group(context, "data", "Data:",
context            93 tools/crm_rule.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context            95 tools/crm_rule.c     return context;
context           113 tools/crm_rule.c     GOptionContext *context = build_arg_context(args, &output_group);
context           117 tools/crm_rule.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           214 tools/crm_rule.c     pcmk__free_arg_context(context);
context          1151 tools/crm_shadow.c     GOptionContext *context = NULL;
context          1166 tools/crm_shadow.c     context = pcmk__build_arg_context(args, "text (default), xml", group,
context          1168 tools/crm_shadow.c     g_option_context_set_description(context, desc);
context          1170 tools/crm_shadow.c     pcmk__add_arg_group(context, "queries", "Queries:",
context          1172 tools/crm_shadow.c     pcmk__add_arg_group(context, "commands", "Commands:",
context          1174 tools/crm_shadow.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context          1176 tools/crm_shadow.c     return context;
context          1190 tools/crm_shadow.c     GOptionContext *context = build_arg_context(args, &output_group);
context          1196 tools/crm_shadow.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context          1211 tools/crm_shadow.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context          1238 tools/crm_shadow.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context          1296 tools/crm_shadow.c     pcmk__free_arg_context(context);
context           414 tools/crm_simulate.c     GOptionContext *context = NULL;
context           439 tools/crm_simulate.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           440 tools/crm_simulate.c     pcmk__add_main_args(context, extra_prog_entries);
context           441 tools/crm_simulate.c     g_option_context_set_description(context, description);
context           443 tools/crm_simulate.c     pcmk__add_arg_group(context, "operations", "Operations:",
context           445 tools/crm_simulate.c     pcmk__add_arg_group(context, "synthetic", "Synthetic Cluster Events:",
context           447 tools/crm_simulate.c     pcmk__add_arg_group(context, "artifact", "Artifact Options:",
context           449 tools/crm_simulate.c     pcmk__add_arg_group(context, "source", "Data Source:",
context           452 tools/crm_simulate.c     return context;
context           467 tools/crm_simulate.c     GOptionContext *context = build_arg_context(args, &output_group);
context           479 tools/crm_simulate.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           560 tools/crm_simulate.c     pcmk__free_arg_context(context);
context           295 tools/crm_ticket.c     GOptionContext *context = NULL;
context           326 tools/crm_ticket.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           327 tools/crm_ticket.c     g_option_context_set_description(context, description);
context           329 tools/crm_ticket.c     pcmk__add_arg_group(context, "queries", "Queries:",
context           331 tools/crm_ticket.c     pcmk__add_arg_group(context, "commands", "Commands:",
context           333 tools/crm_ticket.c     pcmk__add_arg_group(context, "advanced", "Advanced Options:",
context           335 tools/crm_ticket.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           337 tools/crm_ticket.c     pcmk__add_arg_group(context, "deprecated", "Deprecated Options:",
context           340 tools/crm_ticket.c     return context;
context           355 tools/crm_ticket.c     GOptionContext *context = NULL;
context           362 tools/crm_ticket.c     context = build_arg_context(args, &output_group);
context           366 tools/crm_ticket.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           648 tools/crm_ticket.c     pcmk__free_arg_context(context);
context            82 tools/crm_verify.c     GOptionContext *context = NULL;
context           101 tools/crm_verify.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           103 tools/crm_verify.c     pcmk__add_main_args(context, extra_prog_entries);
context           105 tools/crm_verify.c     g_option_context_set_description(context, description);
context           107 tools/crm_verify.c     pcmk__add_arg_group(context, "data", "Data sources:",
context           109 tools/crm_verify.c     pcmk__add_arg_group(context, "additional", "Additional options:",
context           112 tools/crm_verify.c     return context;
context           183 tools/crm_verify.c     GOptionContext *context = build_arg_context(args, &output_group);
context           186 tools/crm_verify.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           278 tools/crm_verify.c     pcmk__free_arg_context(context);
context           146 tools/crmadmin.c     GOptionContext *context = NULL;
context           156 tools/crmadmin.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           157 tools/crmadmin.c     g_option_context_set_description(context, DESC);
context           162 tools/crmadmin.c     pcmk__add_main_args(context, extra_prog_entries);
context           164 tools/crmadmin.c     pcmk__add_arg_group(context, "command", "Commands:",
context           166 tools/crmadmin.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           168 tools/crmadmin.c     return context;
context           185 tools/crmadmin.c     GOptionContext *context = build_arg_context(args, &output_group);
context           188 tools/crmadmin.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           223 tools/crmadmin.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context           260 tools/crmadmin.c     pcmk__free_arg_context(context);
context           281 tools/iso8601.c     GOptionContext *context = NULL;
context           286 tools/iso8601.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           287 tools/iso8601.c     g_option_context_set_description(context, description);
context           289 tools/iso8601.c     pcmk__add_arg_group(context, "commands", "Commands:",
context           291 tools/iso8601.c     pcmk__add_arg_group(context, "modifiers", "Output modifiers:",
context           294 tools/iso8601.c     return context;
context           323 tools/iso8601.c     GOptionContext *context = build_arg_context(args, &output_group);
context           327 tools/iso8601.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           444 tools/iso8601.c     pcmk__free_arg_context(context);
context           323 tools/stonith_admin.c     GOptionContext *context = NULL;
context           333 tools/stonith_admin.c     context = pcmk__build_arg_context(args, "text (default), html, xml", group, NULL);
context           338 tools/stonith_admin.c     pcmk__add_main_args(context, extra_prog_entries);
context           340 tools/stonith_admin.c     pcmk__add_arg_group(context, "definition", "Device Definition Commands:",
context           342 tools/stonith_admin.c     pcmk__add_arg_group(context, "queries", "Queries:",
context           344 tools/stonith_admin.c     pcmk__add_arg_group(context, "fence", "Fencing Commands:",
context           346 tools/stonith_admin.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           348 tools/stonith_admin.c     return context;
context           406 tools/stonith_admin.c     GOptionContext *context = build_arg_context(args, &output_group);
context           409 tools/stonith_admin.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           538 tools/stonith_admin.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context           547 tools/stonith_admin.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context           703 tools/stonith_admin.c     pcmk__free_arg_context(context);