[vala/staging: 2/7] Make use of GLib.OPTION_REMAINING instead of ""



commit 164abf4719b6d17a4e7287d4c0cfd5c5ba8611e8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Dec 13 12:40:50 2017 +0100

    Make use of GLib.OPTION_REMAINING instead of ""

 compiler/valacompiler.vala         |    2 +-
 valadoc/doclets/gtkdoc/doclet.vala |    2 +-
 valadoc/valadoc.vala               |    2 +-
 vapigen/valavapigen.vala           |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 1c2b084..ed97374 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -159,7 +159,7 @@ class Vala.Compiler {
                { "enable-version-header", 0, 0, OptionArg.NONE, ref enable_version_header, "Write vala build 
version in generated files", null },
                { "disable-version-header", 0, 0, OptionArg.NONE, ref disable_version_header, "Do not write 
vala build version in generated files", null },
                { "run-args", 0, 0, OptionArg.STRING, ref run_args, "Arguments passed to directly compiled 
executeable", null },
-               { "", 0, 0, OptionArg.FILENAME_ARRAY, ref sources, null, "FILE..." },
+               { OPTION_REMAINING, 0, 0, OptionArg.FILENAME_ARRAY, ref sources, null, "FILE..." },
                { null }
        };
 
diff --git a/valadoc/doclets/gtkdoc/doclet.vala b/valadoc/doclets/gtkdoc/doclet.vala
index d567d6f..11b6e88 100644
--- a/valadoc/doclets/gtkdoc/doclet.vala
+++ b/valadoc/doclets/gtkdoc/doclet.vala
@@ -41,7 +41,7 @@ namespace Gtkdoc.Config {
                        { "deprecated-guards", 'd', 0, OptionArg.STRING, ref deprecated_guards, "A 
|-separated list of symbols used as deprecation guards", "GUARDS" },
                        { "ignore-decorators", 0, 0, OptionArg.STRING, ref ignore_decorators, "A |-separated 
list of addition decorators in declarations that should be ignored", "DECS" },
                        { "no-html", 0, 0, OptionArg.NONE, ref nohtml, "Disable HTML generation", null },
-                       { "", 0, 0, OptionArg.FILENAME_ARRAY, ref source_files, null, "FILE..." },
+                       { OPTION_REMAINING, 0, 0, OptionArg.FILENAME_ARRAY, ref source_files, null, "FILE..." 
},
                        { null }
                };
 
diff --git a/valadoc/valadoc.vala b/valadoc/valadoc.vala
index d1727c8..d68ed62 100644
--- a/valadoc/valadoc.vala
+++ b/valadoc/valadoc.vala
@@ -117,7 +117,7 @@ public class ValaDoc : Object {
                { "verbose", 0, 0, OptionArg.NONE, ref verbose, "Show all warnings", null },
                { "no-color", 0, 0, OptionArg.NONE, ref disable_diagnostic_colors, "Disable colored output", 
null },
                { "target-glib", 0, 0, OptionArg.STRING, ref target_glib, "Target version of glib for code 
generation", "MAJOR.MINOR" },
-               { "", 0, 0, OptionArg.FILENAME_ARRAY, ref tsources, null, "FILE..." },
+               { OPTION_REMAINING, 0, 0, OptionArg.FILENAME_ARRAY, ref tsources, null, "FILE..." },
 
                { null }
        };
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index 3453afd..e68523c 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -53,7 +53,7 @@ class Vala.VAPIGen {
                { "disable-warnings", 0, 0, OptionArg.NONE, ref disable_warnings, "Disable warnings", null },
                { "version", 0, 0, OptionArg.NONE, ref version, "Display version number", null },
                { "quiet", 'q', 0, OptionArg.NONE, ref quiet_mode, "Do not print messages to the console", 
null },
-               { "", 0, 0, OptionArg.FILENAME_ARRAY, ref sources, null, "FILE..." },
+               { OPTION_REMAINING, 0, 0, OptionArg.FILENAME_ARRAY, ref sources, null, "FILE..." },
                { null }
        };
        


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]