]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Make use of GLib.OPTION_REMAINING instead of ""
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 13 Dec 2017 11:40:50 +0000 (12:40 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 13 Dec 2017 11:43:54 +0000 (12:43 +0100)
compiler/valacompiler.vala
valadoc/doclets/gtkdoc/doclet.vala
valadoc/valadoc.vala
vapigen/valavapigen.vala

index 1c2b084f0b90f6f60417ae7549c4f93f55fdc2ea..ed97374dd3d35614011ad6d9c577a46d023b9eaa 100644 (file)
@@ -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 }
        };
 
index d567d6fe85a48dc48b82b49f43696d6fd493e747..11b6e88a131ed6d0c3292505585309c36d6e6ee3 100644 (file)
@@ -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 }
                };
 
index d1727c8e828f943a40881d00c07cd50e0a73e43c..d68ed62e56a09e0f036ea5decdc346322949d934 100644 (file)
@@ -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 }
        };
index 3453afd48bf71ee9a468bb0585d6ef049d5d4406..e68523cb2edaa3ef70b37a85e65773ea8ca6871e 100644 (file)
@@ -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 }
        };