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, GOptionEntry entries[]); context 101 include/crm/common/cmdline_internal.h void pcmk__add_arg_group(GOptionContext *context, const char *name, context 167 include/crm/common/cmdline_internal.h pcmk__force_args(GOptionContext *context, GError **error, const char *format, ...); context 63 lib/common/cmdline.c GOptionContext *context; context 80 lib/common/cmdline.c context = g_option_context_new(param_string); context 81 lib/common/cmdline.c g_option_context_set_summary(context, common_args->summary); context 82 lib/common/cmdline.c g_option_context_set_description(context, desc); context 83 lib/common/cmdline.c g_option_context_set_main_group(context, main_group); context 103 lib/common/cmdline.c g_option_context_add_group(context, *output_group); context 110 lib/common/cmdline.c return context; context 114 lib/common/cmdline.c pcmk__free_arg_context(GOptionContext *context) { context 115 lib/common/cmdline.c if (context == NULL) { context 119 lib/common/cmdline.c g_option_context_free(context); context 123 lib/common/cmdline.c pcmk__add_main_args(GOptionContext *context, GOptionEntry entries[]) context 125 lib/common/cmdline.c GOptionGroup *main_group = g_option_context_get_main_group(context); context 131 lib/common/cmdline.c pcmk__add_arg_group(GOptionContext *context, const char *name, context 139 lib/common/cmdline.c g_option_context_add_group(context, group); context 239 lib/common/cmdline.c pcmk__force_args(GOptionContext *context, GError **error, const char *format, ...) { context 257 lib/common/cmdline.c retval = g_option_context_parse_strv(context, &extra_args, error); context 258 tools/crm_attribute.c GOptionContext *context = NULL; context 286 tools/crm_attribute.c context = pcmk__build_arg_context(args, NULL, group, NULL); context 287 tools/crm_attribute.c pcmk__add_main_args(context, extra_prog_entries); context 288 tools/crm_attribute.c g_option_context_set_description(context, description); context 290 tools/crm_attribute.c pcmk__add_arg_group(context, "selections", "Selecting attributes:", context 292 tools/crm_attribute.c pcmk__add_arg_group(context, "command", "Commands:", context 294 tools/crm_attribute.c pcmk__add_arg_group(context, "additional", "Additional options:", context 296 tools/crm_attribute.c pcmk__add_arg_group(context, "deprecated", "Deprecated Options:", context 299 tools/crm_attribute.c return context; context 316 tools/crm_attribute.c GOptionContext *context = build_arg_context(args, &output_group); context 318 tools/crm_attribute.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 327 tools/crm_attribute.c pcmk__free_arg_context(context); context 506 tools/crm_attribute.c pcmk__free_arg_context(context); context 276 tools/crm_diff.c GOptionContext *context = NULL; context 289 tools/crm_diff.c context = pcmk__build_arg_context(args, NULL, NULL, NULL); context 290 tools/crm_diff.c g_option_context_set_description(context, description); context 292 tools/crm_diff.c pcmk__add_arg_group(context, "xml", "Original XML:", context 294 tools/crm_diff.c pcmk__add_arg_group(context, "operation", "Operation:", context 296 tools/crm_diff.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 298 tools/crm_diff.c return context; context 312 tools/crm_diff.c GOptionContext *context = build_arg_context(args); context 314 tools/crm_diff.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 323 tools/crm_diff.c pcmk__free_arg_context(context); context 379 tools/crm_diff.c pcmk__free_arg_context(context); context 62 tools/crm_error.c GOptionContext *context = NULL; context 64 tools/crm_error.c context = pcmk__build_arg_context(args, NULL, group, "-- <rc> [...]"); context 65 tools/crm_error.c pcmk__add_main_args(context, entries); context 66 tools/crm_error.c return context; context 83 tools/crm_error.c GOptionContext *context = build_arg_context(args, &output_group); context 85 tools/crm_error.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 94 tools/crm_error.c pcmk__free_arg_context(context); context 130 tools/crm_error.c char *help = g_option_context_get_help(context, TRUE, NULL); context 151 tools/crm_error.c pcmk__free_arg_context(context); context 80 tools/crm_mon.c static GOptionContext *context = NULL; context 1244 tools/crm_mon.c GOptionContext *context = NULL; context 1285 tools/crm_mon.c context = pcmk__build_arg_context(args, "console (default), html, text, xml", group, NULL); context 1286 tools/crm_mon.c pcmk__add_main_args(context, extra_prog_entries); context 1287 tools/crm_mon.c g_option_context_set_description(context, description); context 1289 tools/crm_mon.c pcmk__add_arg_group(context, "display", "Display Options:", context 1291 tools/crm_mon.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 1293 tools/crm_mon.c pcmk__add_arg_group(context, "deprecated", "Deprecated Options:", context 1296 tools/crm_mon.c return context; context 1308 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --text-fancy", g_get_prgname())) { context 1313 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --html-cgi", g_get_prgname())) { context 1318 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --xml-simple-list --xml-substitute", g_get_prgname())) { context 1324 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --xml-legacy --xml-substitute", g_get_prgname())) { context 1443 tools/crm_mon.c context = build_arg_context(args, &output_group); context 1467 tools/crm_mon.c if (!pcmk__force_args(context, &error, "%s --html-title \"Cluster Status\"", context 1472 tools/crm_mon.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 2444 tools/crm_mon.c char *help = g_option_context_get_help(context, TRUE, NULL); context 2450 tools/crm_mon.c pcmk__free_arg_context(context); context 507 tools/crm_node.c GOptionContext *context = NULL; context 517 tools/crm_node.c context = pcmk__build_arg_context(args, NULL, &group, NULL); context 522 tools/crm_node.c pcmk__add_main_args(context, extra_prog_entries); context 524 tools/crm_node.c pcmk__add_arg_group(context, "commands", "Commands:", context 526 tools/crm_node.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 528 tools/crm_node.c return context; context 539 tools/crm_node.c GOptionContext *context = build_arg_context(args, output_group); context 541 tools/crm_node.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 550 tools/crm_node.c pcmk__free_arg_context(context); context 556 tools/crm_node.c char *help = g_option_context_get_help(context, TRUE, NULL); context 594 tools/crm_node.c pcmk__free_arg_context(context); context 1448 tools/crm_resource.c GOptionContext *context = NULL; context 1490 tools/crm_resource.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 1491 tools/crm_resource.c g_option_context_set_description(context, description); context 1496 tools/crm_resource.c pcmk__add_main_args(context, extra_prog_entries); context 1498 tools/crm_resource.c pcmk__add_arg_group(context, "queries", "Queries:", context 1500 tools/crm_resource.c pcmk__add_arg_group(context, "commands", "Commands:", context 1502 tools/crm_resource.c pcmk__add_arg_group(context, "locations", "Locations:", context 1504 tools/crm_resource.c pcmk__add_arg_group(context, "advanced", "Advanced:", context 1506 tools/crm_resource.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 1508 tools/crm_resource.c return context; context 1521 tools/crm_resource.c GOptionContext *context = NULL; context 1529 tools/crm_resource.c context = build_arg_context(args, &output_group); context 1532 tools/crm_resource.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 1639 tools/crm_resource.c pcmk__force_args(context, &error, "%s --xml-simple-list --xml-substitute", g_get_prgname()); context 1643 tools/crm_resource.c pcmk__force_args(context, &error, "%s --xml-substitute", g_get_prgname()); context 1649 tools/crm_resource.c pcmk__force_args(context, &error, "%s --text-fancy", g_get_prgname()); context 2128 tools/crm_resource.c g_option_context_free(context); context 210 tools/crm_rule.c GOptionContext *context = NULL; context 215 tools/crm_rule.c context = pcmk__build_arg_context(args, NULL, NULL, NULL); context 216 tools/crm_rule.c g_option_context_set_description(context, description); context 218 tools/crm_rule.c pcmk__add_arg_group(context, "modes", "Modes (mutually exclusive):", context 220 tools/crm_rule.c pcmk__add_arg_group(context, "data", "Data:", context 222 tools/crm_rule.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 224 tools/crm_rule.c return context; context 241 tools/crm_rule.c GOptionContext *context = build_arg_context(args); context 244 tools/crm_rule.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 253 tools/crm_rule.c pcmk__free_arg_context(context); context 366 tools/crm_rule.c pcmk__free_arg_context(context); context 811 tools/crm_simulate.c GOptionContext *context = NULL; context 836 tools/crm_simulate.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 837 tools/crm_simulate.c pcmk__add_main_args(context, extra_prog_entries); context 838 tools/crm_simulate.c g_option_context_set_description(context, description); context 840 tools/crm_simulate.c pcmk__add_arg_group(context, "operations", "Operations:", context 842 tools/crm_simulate.c pcmk__add_arg_group(context, "synthetic", "Synthetic Cluster Events:", context 844 tools/crm_simulate.c pcmk__add_arg_group(context, "artifact", "Artifact Options:", context 846 tools/crm_simulate.c pcmk__add_arg_group(context, "source", "Data Source:", context 849 tools/crm_simulate.c return context; context 866 tools/crm_simulate.c GOptionContext *context = build_arg_context(args, &output_group); context 872 tools/crm_simulate.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 889 tools/crm_simulate.c pcmk__force_args(context, &error, "%s --text-fancy", g_get_prgname()); context 891 tools/crm_simulate.c pcmk__force_args(context, &error, "%s --xml-simple-list --xml-substitute", g_get_prgname()); context 1158 tools/crm_simulate.c pcmk__free_arg_context(context); context 83 tools/crm_verify.c GOptionContext *context = NULL; context 92 tools/crm_verify.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 93 tools/crm_verify.c g_option_context_set_description(context, description); context 95 tools/crm_verify.c pcmk__add_arg_group(context, "data", "Data sources:", context 97 tools/crm_verify.c pcmk__add_arg_group(context, "additional", "Additional options:", context 100 tools/crm_verify.c return context; context 123 tools/crm_verify.c GOptionContext *context = build_arg_context(args, &output_group); context 126 tools/crm_verify.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 287 tools/crm_verify.c pcmk__free_arg_context(context); context 146 tools/crmadmin.c GOptionContext *context = NULL; context 163 tools/crmadmin.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 164 tools/crmadmin.c g_option_context_set_description(context, description); context 169 tools/crmadmin.c pcmk__add_main_args(context, extra_prog_entries); context 171 tools/crmadmin.c pcmk__add_arg_group(context, "command", "Commands:", context 173 tools/crmadmin.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 175 tools/crmadmin.c return context; context 192 tools/crmadmin.c GOptionContext *context = build_arg_context(args, &output_group); context 195 tools/crmadmin.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 214 tools/crmadmin.c if (!pcmk__force_args(context, &error, "%s --xml-simple-list --xml-substitute", g_get_prgname())) { context 234 tools/crmadmin.c char *help = g_option_context_get_help(context, TRUE, NULL); context 268 tools/crmadmin.c pcmk__free_arg_context(context); context 306 tools/stonith_admin.c GOptionContext *context = NULL; context 316 tools/stonith_admin.c context = pcmk__build_arg_context(args, "text (default), html, xml", group, NULL); context 321 tools/stonith_admin.c pcmk__add_main_args(context, extra_prog_entries); context 323 tools/stonith_admin.c pcmk__add_arg_group(context, "definition", "Device Definition Commands:", context 325 tools/stonith_admin.c pcmk__add_arg_group(context, "queries", "Queries:", context 327 tools/stonith_admin.c pcmk__add_arg_group(context, "fence", "Fencing Commands:", context 329 tools/stonith_admin.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 331 tools/stonith_admin.c return context; context 353 tools/stonith_admin.c GOptionContext *context = build_arg_context(args, &output_group); context 356 tools/stonith_admin.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 475 tools/stonith_admin.c char *help = g_option_context_get_help(context, TRUE, NULL); context 484 tools/stonith_admin.c char *help = g_option_context_get_help(context, TRUE, NULL); context 608 tools/stonith_admin.c pcmk__free_arg_context(context);