validate: Rename --list-action-types to --inspect-action-type

Making clearer the meaning of the parameter and closer to
the usual naming in the GStreamer land.
This commit is contained in:
Thibault Saunier 2014-10-12 19:46:59 +02:00
parent b1d3b194cd
commit 6d06079202

View file

@ -740,7 +740,7 @@ main (int argc, gchar ** argv)
gchar *load_path = NULL; gchar *load_path = NULL;
gchar *videosink = NULL, *audiosink = NULL; gchar *videosink = NULL, *audiosink = NULL;
const gchar *scenario = NULL; const gchar *scenario = NULL;
gboolean list_action_types = FALSE; gboolean inspect_action_type = FALSE;
gchar *encoding_profile = NULL; gchar *encoding_profile = NULL;
GOptionEntry options[] = { GOptionEntry options[] = {
@ -785,8 +785,11 @@ main (int argc, gchar ** argv)
{"audiosink", 'a', 0, G_OPTION_ARG_STRING, &audiosink, {"audiosink", 'a', 0, G_OPTION_ARG_STRING, &audiosink,
"The audio sink used for playing back", "<audiosink>"}, "The audio sink used for playing back", "<audiosink>"},
#ifdef HAVE_GST_VALIDATE #ifdef HAVE_GST_VALIDATE
{"list-action-types", 'y', 0, G_OPTION_ARG_NONE, &list_action_types, {"inspect-action-type", 'y', 0, G_OPTION_ARG_NONE, &inspect_action_type,
"List the available action types with which to write scenarios", NULL}, "Inspect the avalaible action types with which to write scenarios"
" if no parameter passed, it will list all avalaible action types"
" otherwize will print the full description of the wanted types",
NULL},
{"set-scenario", 0, 0, G_OPTION_ARG_STRING, &scenario, {"set-scenario", 0, 0, G_OPTION_ARG_STRING, &scenario,
"Specify a GstValidate scenario to run, 'none' means load gst-validate" "Specify a GstValidate scenario to run, 'none' means load gst-validate"
" but run no scenario on it", "<scenario_name>"}, " but run no scenario on it", "<scenario_name>"},
@ -862,7 +865,7 @@ main (int argc, gchar ** argv)
exit (0); exit (0);
} }
if (list_action_types) if (inspect_action_type)
return ges_validate_print_action_types ((const gchar **) argv + 1, return ges_validate_print_action_types ((const gchar **) argv + 1,
argc - 1); argc - 1);