From: Rico Tzschichholz Date: Wed, 13 Dec 2017 11:40:50 +0000 (+0100) Subject: Make use of GLib.OPTION_REMAINING instead of "" X-Git-Tag: 0.39.3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=164abf4719b6d17a4e7287d4c0cfd5c5ba8611e8;p=thirdparty%2Fvala.git Make use of GLib.OPTION_REMAINING instead of "" --- diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 1c2b084f0..ed97374dd 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 d567d6fe8..11b6e88a1 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 d1727c8e8..d68ed62e5 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 3453afd48..e68523cb2 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 } };