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 70 lib/common/cmdline.c GOptionContext *context; context 87 lib/common/cmdline.c context = g_option_context_new(param_string); context 88 lib/common/cmdline.c g_option_context_set_summary(context, common_args->summary); context 89 lib/common/cmdline.c g_option_context_set_description(context, desc); context 90 lib/common/cmdline.c g_option_context_set_main_group(context, main_group); context 110 lib/common/cmdline.c g_option_context_add_group(context, *output_group); context 117 lib/common/cmdline.c return context; context 121 lib/common/cmdline.c pcmk__free_arg_context(GOptionContext *context) { context 122 lib/common/cmdline.c if (context == NULL) { context 126 lib/common/cmdline.c g_option_context_free(context); context 130 lib/common/cmdline.c pcmk__add_main_args(GOptionContext *context, GOptionEntry entries[]) context 132 lib/common/cmdline.c GOptionGroup *main_group = g_option_context_get_main_group(context); context 138 lib/common/cmdline.c pcmk__add_arg_group(GOptionContext *context, const char *name, context 146 lib/common/cmdline.c g_option_context_add_group(context, group); context 256 lib/common/cmdline.c pcmk__force_args(GOptionContext *context, GError **error, const char *format, ...) { context 274 lib/common/cmdline.c retval = g_option_context_parse_strv(context, &extra_args, error); context 275 tools/crm_diff.c GOptionContext *context = NULL; context 288 tools/crm_diff.c context = pcmk__build_arg_context(args, NULL, NULL, NULL); context 289 tools/crm_diff.c g_option_context_set_description(context, description); context 291 tools/crm_diff.c pcmk__add_arg_group(context, "xml", "Original XML:", context 293 tools/crm_diff.c pcmk__add_arg_group(context, "operation", "Operation:", context 295 tools/crm_diff.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 297 tools/crm_diff.c return context; context 310 tools/crm_diff.c GOptionContext *context = NULL; context 313 tools/crm_diff.c context = build_arg_context(args); context 319 tools/crm_diff.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 335 tools/crm_diff.c char *help = g_option_context_get_help(context, TRUE, NULL); context 393 tools/crm_diff.c pcmk__free_arg_context(context); context 61 tools/crm_error.c GOptionContext *context = NULL; context 63 tools/crm_error.c context = pcmk__build_arg_context(args, NULL, group, "-- <rc> [...]"); context 64 tools/crm_error.c pcmk__add_main_args(context, entries); context 65 tools/crm_error.c return context; context 75 tools/crm_error.c GOptionContext *context = build_arg_context(args, &output_group); context 86 tools/crm_error.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 131 tools/crm_error.c char *help = g_option_context_get_help(context, TRUE, NULL); context 80 tools/crm_mon.c static GOptionContext *context = NULL; context 1018 tools/crm_mon.c GOptionContext *context = NULL; context 1055 tools/crm_mon.c context = pcmk__build_arg_context(args, "console (default), html, text, xml", group, NULL); context 1056 tools/crm_mon.c pcmk__add_main_args(context, extra_prog_entries); context 1057 tools/crm_mon.c g_option_context_set_description(context, description); context 1059 tools/crm_mon.c pcmk__add_arg_group(context, "display", "Display Options:", context 1061 tools/crm_mon.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 1063 tools/crm_mon.c pcmk__add_arg_group(context, "deprecated", "Deprecated Options:", context 1066 tools/crm_mon.c return context; context 1078 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --text-fancy", g_get_prgname())) { context 1083 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --html-cgi", g_get_prgname())) { context 1088 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --xml-simple-list --xml-substitute", g_get_prgname())) { context 1094 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --xml-legacy --xml-substitute", g_get_prgname())) { context 1167 tools/crm_mon.c context = build_arg_context(args, &output_group); context 1191 tools/crm_mon.c if (!pcmk__force_args(context, &error, "%s --html-title \"Cluster Status\"", context 1196 tools/crm_mon.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 2175 tools/crm_mon.c char *help = g_option_context_get_help(context, TRUE, NULL); context 2181 tools/crm_mon.c pcmk__free_arg_context(context); context 506 tools/crm_node.c GOptionContext *context = NULL; context 516 tools/crm_node.c context = pcmk__build_arg_context(args, NULL, &group, NULL); context 521 tools/crm_node.c pcmk__add_main_args(context, extra_prog_entries); context 523 tools/crm_node.c pcmk__add_arg_group(context, "commands", "Commands:", context 525 tools/crm_node.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 527 tools/crm_node.c return context; context 536 tools/crm_node.c GOptionContext *context = NULL; context 540 tools/crm_node.c context = build_arg_context(args, output_group); context 546 tools/crm_node.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 562 tools/crm_node.c char *help = g_option_context_get_help(context, TRUE, NULL); context 601 tools/crm_node.c pcmk__free_arg_context(context); context 1434 tools/crm_resource.c GOptionContext *context = NULL; context 1476 tools/crm_resource.c context = pcmk__build_arg_context(args, NULL, NULL, NULL); context 1477 tools/crm_resource.c g_option_context_set_description(context, description); context 1482 tools/crm_resource.c pcmk__add_main_args(context, extra_prog_entries); context 1484 tools/crm_resource.c pcmk__add_arg_group(context, "queries", "Queries:", context 1486 tools/crm_resource.c pcmk__add_arg_group(context, "commands", "Commands:", context 1488 tools/crm_resource.c pcmk__add_arg_group(context, "locations", "Locations:", context 1490 tools/crm_resource.c pcmk__add_arg_group(context, "validate", "Validate:", context 1492 tools/crm_resource.c pcmk__add_arg_group(context, "advanced", "Advanced:", context 1494 tools/crm_resource.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 1496 tools/crm_resource.c return context; context 1508 tools/crm_resource.c GOptionContext *context = NULL; context 1511 tools/crm_resource.c context = build_arg_context(args); context 1516 tools/crm_resource.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 1973 tools/crm_resource.c g_option_context_free(context); context 184 tools/crm_rule.c GOptionContext *context = NULL; context 189 tools/crm_rule.c context = pcmk__build_arg_context(args, NULL, NULL, NULL); context 190 tools/crm_rule.c g_option_context_set_description(context, description); context 192 tools/crm_rule.c pcmk__add_arg_group(context, "modes", "Modes (mutually exclusive):", context 194 tools/crm_rule.c pcmk__add_arg_group(context, "data", "Data:", context 196 tools/crm_rule.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 198 tools/crm_rule.c return context; context 216 tools/crm_rule.c GOptionContext *context = NULL; context 219 tools/crm_rule.c context = build_arg_context(args); context 225 tools/crm_rule.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 241 tools/crm_rule.c char *help = g_option_context_get_help(context, TRUE, NULL); context 358 tools/crm_rule.c pcmk__free_arg_context(context); context 856 tools/crm_simulate.c GOptionContext *context = NULL; context 880 tools/crm_simulate.c context = pcmk__build_arg_context(args, NULL, group, NULL); context 881 tools/crm_simulate.c pcmk__add_main_args(context, extra_prog_entries); context 882 tools/crm_simulate.c g_option_context_set_description(context, description); context 884 tools/crm_simulate.c pcmk__add_arg_group(context, "operations", "Operations:", context 886 tools/crm_simulate.c pcmk__add_arg_group(context, "synthetic", "Synthetic Cluster Events:", context 888 tools/crm_simulate.c pcmk__add_arg_group(context, "output", "Output Options:", context 890 tools/crm_simulate.c pcmk__add_arg_group(context, "source", "Data Source:", context 893 tools/crm_simulate.c return context; context 903 tools/crm_simulate.c GOptionContext *context = build_arg_context(args, &output_group); context 916 tools/crm_simulate.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 932 tools/crm_simulate.c gchar *help = g_option_context_get_help(context, TRUE, NULL); context 1131 tools/crm_simulate.c pcmk__free_arg_context(context); context 366 tools/crmadmin.c GOptionContext *context = NULL; context 378 tools/crmadmin.c context = pcmk__build_arg_context(args, NULL, NULL, NULL); context 379 tools/crmadmin.c g_option_context_set_description(context, description); context 384 tools/crmadmin.c pcmk__add_main_args(context, extra_prog_entries); context 386 tools/crmadmin.c pcmk__add_arg_group(context, "command", "Commands:", context 388 tools/crmadmin.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 390 tools/crmadmin.c return context; context 404 tools/crmadmin.c GOptionContext *context = NULL; context 407 tools/crmadmin.c context = build_arg_context(args); context 413 tools/crmadmin.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 455 tools/crmadmin.c char *help = g_option_context_get_help(context, TRUE, NULL); context 530 tools/crmadmin.c pcmk__free_arg_context(context); context 305 tools/stonith_admin.c GOptionContext *context = NULL; context 315 tools/stonith_admin.c context = pcmk__build_arg_context(args, "text (default), html, xml", group, NULL); context 320 tools/stonith_admin.c pcmk__add_main_args(context, extra_prog_entries); context 322 tools/stonith_admin.c pcmk__add_arg_group(context, "definition", "Device Definition Commands:", context 324 tools/stonith_admin.c pcmk__add_arg_group(context, "queries", "Queries:", context 326 tools/stonith_admin.c pcmk__add_arg_group(context, "fence", "Fencing Commands:", context 328 tools/stonith_admin.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 330 tools/stonith_admin.c return context; context 350 tools/stonith_admin.c GOptionContext *context = NULL; context 354 tools/stonith_admin.c context = build_arg_context(args, &output_group); context 363 tools/stonith_admin.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 483 tools/stonith_admin.c char *help = g_option_context_get_help(context, TRUE, NULL); context 492 tools/stonith_admin.c char *help = g_option_context_get_help(context, TRUE, NULL); context 617 tools/stonith_admin.c pcmk__free_arg_context(context);