mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
gst-qa: show help and exit when no arguments are provided
Instead of attempting to create empty pipelines and weird things happening :)
This commit is contained in:
parent
04b3517e41
commit
d7b2977657
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ main (int argc, gchar ** argv)
|
|||
ctx = g_option_context_new ("- runs QA tests for a pipeline.");
|
||||
g_option_context_add_main_entries (ctx, options, NULL);
|
||||
|
||||
if (argc == 1) {
|
||||
g_print ("%s", g_option_context_get_help (ctx, FALSE, NULL));
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
|
||||
g_printerr ("Error initializing: %s\n", err->message);
|
||||
g_option_context_free (ctx);
|
||||
|
|
Loading…
Reference in a new issue