context            89 daemons/attrd/pacemaker-attrd.c     GOptionContext *context = NULL;
context            91 daemons/attrd/pacemaker-attrd.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context            92 daemons/attrd/pacemaker-attrd.c     pcmk__add_main_args(context, entries);
context            93 daemons/attrd/pacemaker-attrd.c     return context;
context           107 daemons/attrd/pacemaker-attrd.c     GOptionContext *context = build_arg_context(args, &output_group);
context           114 daemons/attrd/pacemaker-attrd.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           213 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            84 daemons/controld/pacemaker-controld.c     GOptionContext *context = build_arg_context(args, &output_group);
context            89 daemons/controld/pacemaker-controld.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           174 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           444 daemons/execd/pacemaker-execd.c     GOptionContext *context = NULL;
context           446 daemons/execd/pacemaker-execd.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           447 daemons/execd/pacemaker-execd.c     pcmk__add_main_args(context, entries);
context           448 daemons/execd/pacemaker-execd.c     return context;
context           466 daemons/execd/pacemaker-execd.c     GOptionContext *context = NULL;
context           479 daemons/execd/pacemaker-execd.c     context = build_arg_context(args, &output_group);
context           484 daemons/execd/pacemaker-execd.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           596 daemons/execd/pacemaker-execd.c     pcmk__free_arg_context(context);
context           603 daemons/fenced/cts-fence-helper.c     GOptionContext *context = NULL;
context           605 daemons/fenced/cts-fence-helper.c     context = pcmk__build_arg_context(args, NULL, group, NULL);
context           606 daemons/fenced/cts-fence-helper.c     pcmk__add_main_args(context, entries);
context           607 daemons/fenced/cts-fence-helper.c     return context;
context           618 daemons/fenced/cts-fence-helper.c     GOptionContext *context = build_arg_context(args, NULL);
context           620 daemons/fenced/cts-fence-helper.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           660 daemons/fenced/cts-fence-helper.c     pcmk__free_arg_context(context);
context           548 daemons/fenced/pacemaker-fenced.c     GOptionContext *context = NULL;
context           550 daemons/fenced/pacemaker-fenced.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           551 daemons/fenced/pacemaker-fenced.c     pcmk__add_main_args(context, entries);
context           552 daemons/fenced/pacemaker-fenced.c     return context;
context           567 daemons/fenced/pacemaker-fenced.c     GOptionContext *context = build_arg_context(args, &output_group);
context           572 daemons/fenced/pacemaker-fenced.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           680 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            67 lib/common/cmdline.c     GOptionContext *context;
context            84 lib/common/cmdline.c     context = g_option_context_new(param_string);
context            85 lib/common/cmdline.c     g_option_context_set_summary(context, common_args->summary);
context            86 lib/common/cmdline.c     g_option_context_set_description(context,
context            88 lib/common/cmdline.c     g_option_context_set_main_group(context, main_group);
context           108 lib/common/cmdline.c         g_option_context_add_group(context, *output_group);
context           112 lib/common/cmdline.c     return context;
context           116 lib/common/cmdline.c pcmk__free_arg_context(GOptionContext *context) {
context           117 lib/common/cmdline.c     if (context == NULL) {
context           121 lib/common/cmdline.c     g_option_context_free(context);
context           125 lib/common/cmdline.c pcmk__add_main_args(GOptionContext *context, const GOptionEntry entries[])
context           127 lib/common/cmdline.c     GOptionGroup *main_group = g_option_context_get_main_group(context);
context           133 lib/common/cmdline.c pcmk__add_arg_group(GOptionContext *context, const char *name,
context           141 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           442 tools/cibadmin.c     GOptionContext *context = NULL;
context           494 tools/cibadmin.c     context = pcmk__build_arg_context(args, NULL, NULL, "<command>");
context           495 tools/cibadmin.c     g_option_context_set_description(context, desc);
context           497 tools/cibadmin.c     pcmk__add_main_args(context, extra_prog_entries);
context           499 tools/cibadmin.c     pcmk__add_arg_group(context, "commands", "Commands:", "Show command help",
context           501 tools/cibadmin.c     pcmk__add_arg_group(context, "data", "Data:", "Show data help",
context           503 tools/cibadmin.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           505 tools/cibadmin.c     return context;
context           521 tools/cibadmin.c     GOptionContext *context = build_arg_context(args);
context           523 tools/cibadmin.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           529 tools/cibadmin.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context           549 tools/cibadmin.c         pcmk__free_arg_context(context);
context           581 tools/cibadmin.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context           843 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           224 tools/crm_diff.c     GOptionContext *context = NULL;
context           237 tools/crm_diff.c     context = pcmk__build_arg_context(args, NULL, NULL, NULL);
context           238 tools/crm_diff.c     g_option_context_set_description(context, description);
context           240 tools/crm_diff.c     pcmk__add_arg_group(context, "xml", "Original XML:",
context           242 tools/crm_diff.c     pcmk__add_arg_group(context, "operation", "Operation:",
context           244 tools/crm_diff.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           246 tools/crm_diff.c     return context;
context           260 tools/crm_diff.c     GOptionContext *context = build_arg_context(args);
context           264 tools/crm_diff.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           273 tools/crm_diff.c         pcmk__free_arg_context(context);
context           328 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          1189 tools/crm_mon.c     GOptionContext *context = NULL;
context          1259 tools/crm_mon.c     context = pcmk__build_arg_context(args, fmts, group, NULL);
context          1260 tools/crm_mon.c     pcmk__add_main_args(context, extra_prog_entries);
context          1261 tools/crm_mon.c     g_option_context_set_description(context, desc);
context          1263 tools/crm_mon.c     pcmk__add_arg_group(context, "display", "Display Options:",
context          1265 tools/crm_mon.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context          1267 tools/crm_mon.c     pcmk__add_arg_group(context, "deprecated", "Deprecated Options:",
context          1270 tools/crm_mon.c     return context;
context          1416 tools/crm_mon.c     context = build_arg_context(args, &output_group);
context          1433 tools/crm_mon.c     if (!pcmk__force_args(context, &error, "%s --html-title \"Cluster Status\"",
context          1438 tools/crm_mon.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context          2152 tools/crm_mon.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context          2158 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          1987 tools/crm_resource.c     GOptionContext *context = NULL;
context          2029 tools/crm_resource.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context          2030 tools/crm_resource.c     g_option_context_set_description(context, description);
context          2035 tools/crm_resource.c     pcmk__add_main_args(context, extra_prog_entries);
context          2037 tools/crm_resource.c     pcmk__add_arg_group(context, "queries", "Queries:",
context          2039 tools/crm_resource.c     pcmk__add_arg_group(context, "commands", "Commands:",
context          2041 tools/crm_resource.c     pcmk__add_arg_group(context, "locations", "Locations:",
context          2043 tools/crm_resource.c     pcmk__add_arg_group(context, "advanced", "Advanced:",
context          2045 tools/crm_resource.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context          2047 tools/crm_resource.c     return context;
context          2065 tools/crm_resource.c     GOptionContext *context = NULL;
context          2073 tools/crm_resource.c     context = build_arg_context(args, &output_group);
context          2076 tools/crm_resource.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context          2387 tools/crm_resource.c     g_option_context_free(context);
context            84 tools/crm_rule.c     GOptionContext *context = NULL;
context            86 tools/crm_rule.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context            88 tools/crm_rule.c     pcmk__add_arg_group(context, "modes", "Modes (mutually exclusive):",
context            90 tools/crm_rule.c     pcmk__add_arg_group(context, "data", "Data:",
context            92 tools/crm_rule.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context            94 tools/crm_rule.c     return context;
context           112 tools/crm_rule.c     GOptionContext *context = build_arg_context(args, &output_group);
context           116 tools/crm_rule.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           213 tools/crm_rule.c     pcmk__free_arg_context(context);
context          1149 tools/crm_shadow.c     GOptionContext *context = NULL;
context          1164 tools/crm_shadow.c     context = pcmk__build_arg_context(args, "text (default), xml", group,
context          1166 tools/crm_shadow.c     g_option_context_set_description(context, desc);
context          1168 tools/crm_shadow.c     pcmk__add_arg_group(context, "queries", "Queries:",
context          1170 tools/crm_shadow.c     pcmk__add_arg_group(context, "commands", "Commands:",
context          1172 tools/crm_shadow.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context          1174 tools/crm_shadow.c     return context;
context          1188 tools/crm_shadow.c     GOptionContext *context = build_arg_context(args, &output_group);
context          1194 tools/crm_shadow.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context          1209 tools/crm_shadow.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context          1236 tools/crm_shadow.c         gchar *help = g_option_context_get_help(context, TRUE, NULL);
context          1294 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           552 tools/crm_simulate.c     pcmk__free_arg_context(context);
context           294 tools/crm_ticket.c     GOptionContext *context = NULL;
context           325 tools/crm_ticket.c     context = pcmk__build_arg_context(args, "text (default), xml", group, NULL);
context           326 tools/crm_ticket.c     g_option_context_set_description(context, description);
context           328 tools/crm_ticket.c     pcmk__add_arg_group(context, "queries", "Queries:",
context           330 tools/crm_ticket.c     pcmk__add_arg_group(context, "commands", "Commands:",
context           332 tools/crm_ticket.c     pcmk__add_arg_group(context, "advanced", "Advanced Options:",
context           334 tools/crm_ticket.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           336 tools/crm_ticket.c     pcmk__add_arg_group(context, "deprecated", "Deprecated Options:",
context           339 tools/crm_ticket.c     return context;
context           354 tools/crm_ticket.c     GOptionContext *context = NULL;
context           361 tools/crm_ticket.c     context = build_arg_context(args, &output_group);
context           365 tools/crm_ticket.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           647 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           277 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           324 tools/stonith_admin.c     GOptionContext *context = NULL;
context           334 tools/stonith_admin.c     context = pcmk__build_arg_context(args, "text (default), html, xml", group, NULL);
context           339 tools/stonith_admin.c     pcmk__add_main_args(context, extra_prog_entries);
context           341 tools/stonith_admin.c     pcmk__add_arg_group(context, "definition", "Device Definition Commands:",
context           343 tools/stonith_admin.c     pcmk__add_arg_group(context, "queries", "Queries:",
context           345 tools/stonith_admin.c     pcmk__add_arg_group(context, "fence", "Fencing Commands:",
context           347 tools/stonith_admin.c     pcmk__add_arg_group(context, "additional", "Additional Options:",
context           349 tools/stonith_admin.c     return context;
context           407 tools/stonith_admin.c     GOptionContext *context = build_arg_context(args, &output_group);
context           410 tools/stonith_admin.c     if (!g_option_context_parse_strv(context, &processed_args, &error)) {
context           539 tools/stonith_admin.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context           548 tools/stonith_admin.c         char *help = g_option_context_get_help(context, TRUE, NULL);
context           704 tools/stonith_admin.c     pcmk__free_arg_context(context);