[rygel] core: Ignore unknown commandline options
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Ignore unknown commandline options
- Date: Tue, 19 Apr 2011 14:59:31 +0000 (UTC)
commit ac14a93c9afa02286e652e0dee09ec409fea4bf2
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Apr 19 17:58:50 2011 +0300
core: Ignore unknown commandline options
src/rygel/rygel-cmdline-config.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-cmdline-config.vala b/src/rygel/rygel-cmdline-config.vala
index 5066a54..7d98d69 100644
--- a/src/rygel/rygel-cmdline-config.vala
+++ b/src/rygel/rygel-cmdline-config.vala
@@ -122,6 +122,7 @@ internal class Rygel.CmdlineConfig : GLib.Object, Configuration {
var parameter_string = "- " + BuildConfig.PACKAGE_NAME;
var opt_context = new OptionContext (parameter_string);
opt_context.set_help_enabled (true);
+ opt_context.set_ignore_unknown_options (true);
opt_context.add_main_entries (options, null);
opt_context.add_group (Gst.init_get_option_group ());
opt_context.parse (ref args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]