g_option_context_parse with -verbose or -messages

ht techdev ht.techdev at gmail.com
Wed Jul 20 18:09:08 UTC 2016


Hi

Passing -verbose or -messages as cli arguments to an app, which uses
g_option_context_parse to parse arguments, i.e.,

.

    if (!g_option_context_parse(ctx, &argc, &argv, &err)) {

         g_printerr("Failed to initialize: %s\n", err->message);

         g_error_free(err);

         return 1;

    }

.

Generates the following error:

Failed to initialize: Unknown option -messages

(Similar thing with -v or -m)

--gst-debug or--gst-plugin-path are fine, though.

Any thoughts?

Cheers,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160720/845b75d8/attachment.html>


More information about the gstreamer-devel mailing list