context 237 daemons/pacemakerd/pacemakerd.c GOptionContext *context = NULL; context 239 daemons/pacemakerd/pacemakerd.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 240 daemons/pacemakerd/pacemakerd.c pcmk__add_main_args(context, entries); context 241 daemons/pacemakerd/pacemakerd.c return context; context 255 daemons/pacemakerd/pacemakerd.c GOptionContext *context = build_arg_context(args, &output_group); context 267 daemons/pacemakerd/pacemakerd.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 280 daemons/pacemakerd/pacemakerd.c pcmk__force_args(context, &error, "%s --xml-simple-list", g_get_prgname()); context 431 daemons/pacemakerd/pacemakerd.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, 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 64 lib/common/cmdline.c GOptionContext *context; context 81 lib/common/cmdline.c context = g_option_context_new(param_string); context 82 lib/common/cmdline.c g_option_context_set_summary(context, common_args->summary); context 83 lib/common/cmdline.c g_option_context_set_description(context, desc); context 84 lib/common/cmdline.c g_option_context_set_main_group(context, main_group); context 104 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, 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 276 lib/common/cmdline.c pcmk__force_args(GOptionContext *context, GError **error, const char *format, ...) { context 294 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 82 tools/crm_mon.c static GOptionContext *context = NULL; context 1196 tools/crm_mon.c GOptionContext *context = NULL; context 1237 tools/crm_mon.c context = pcmk__build_arg_context(args, "console (default), html, text, xml", group, NULL); context 1238 tools/crm_mon.c pcmk__add_main_args(context, extra_prog_entries); context 1239 tools/crm_mon.c g_option_context_set_description(context, description); context 1241 tools/crm_mon.c pcmk__add_arg_group(context, "display", "Display Options:", context 1243 tools/crm_mon.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 1245 tools/crm_mon.c pcmk__add_arg_group(context, "deprecated", "Deprecated Options:", context 1248 tools/crm_mon.c return context; context 1260 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --text-fancy", g_get_prgname())) { context 1265 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --html-cgi", g_get_prgname())) { context 1270 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --xml-simple-list --xml-substitute", g_get_prgname())) { context 1276 tools/crm_mon.c if (!pcmk__force_args(context, &err, "%s --xml-legacy --xml-substitute", g_get_prgname())) { context 1395 tools/crm_mon.c context = build_arg_context(args, &output_group); context 1419 tools/crm_mon.c if (!pcmk__force_args(context, &error, "%s --html-title \"Cluster Status\"", context 1424 tools/crm_mon.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 2373 tools/crm_mon.c char *help = g_option_context_get_help(context, TRUE, NULL); context 2379 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 1460 tools/crm_resource.c GOptionContext *context = NULL; context 1502 tools/crm_resource.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 1503 tools/crm_resource.c g_option_context_set_description(context, description); context 1508 tools/crm_resource.c pcmk__add_main_args(context, extra_prog_entries); context 1510 tools/crm_resource.c pcmk__add_arg_group(context, "queries", "Queries:", context 1512 tools/crm_resource.c pcmk__add_arg_group(context, "commands", "Commands:", context 1514 tools/crm_resource.c pcmk__add_arg_group(context, "locations", "Locations:", context 1516 tools/crm_resource.c pcmk__add_arg_group(context, "advanced", "Advanced:", context 1518 tools/crm_resource.c pcmk__add_arg_group(context, "additional", "Additional Options:", context 1520 tools/crm_resource.c return context; context 1533 tools/crm_resource.c GOptionContext *context = NULL; context 1541 tools/crm_resource.c context = build_arg_context(args, &output_group); context 1544 tools/crm_resource.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 1652 tools/crm_resource.c pcmk__force_args(context, &error, "%s --xml-simple-list --xml-substitute", g_get_prgname()); context 1656 tools/crm_resource.c pcmk__force_args(context, &error, "%s --xml-substitute", g_get_prgname()); context 1662 tools/crm_resource.c pcmk__force_args(context, &error, "%s --text-fancy", g_get_prgname()); context 2139 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 814 tools/crm_simulate.c GOptionContext *context = NULL; context 839 tools/crm_simulate.c context = pcmk__build_arg_context(args, "text (default), xml", group, NULL); context 840 tools/crm_simulate.c pcmk__add_main_args(context, extra_prog_entries); context 841 tools/crm_simulate.c g_option_context_set_description(context, description); context 843 tools/crm_simulate.c pcmk__add_arg_group(context, "operations", "Operations:", context 845 tools/crm_simulate.c pcmk__add_arg_group(context, "synthetic", "Synthetic Cluster Events:", context 847 tools/crm_simulate.c pcmk__add_arg_group(context, "artifact", "Artifact Options:", context 849 tools/crm_simulate.c pcmk__add_arg_group(context, "source", "Data Source:", context 852 tools/crm_simulate.c return context; context 869 tools/crm_simulate.c GOptionContext *context = build_arg_context(args, &output_group); context 875 tools/crm_simulate.c if (!g_option_context_parse_strv(context, &processed_args, &error)) { context 892 tools/crm_simulate.c pcmk__force_args(context, &error, "%s --text-fancy", g_get_prgname()); context 894 tools/crm_simulate.c pcmk__force_args(context, &error, "%s --xml-simple-list --xml-substitute", g_get_prgname()); context 1161 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);