summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-05-01 17:37:07 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-05-01 17:38:09 +0200
commit96e55fe536ec81a347af6c038241820e11b5bfb5 (patch)
tree473576c0dfb4afe859935d98a6e64f225da0b5f0 /compiler
parent6c75818675582a2bb1ec17f199668a53c872b3b2 (diff)
downloadvala-96e55fe536ec81a347af6c038241820e11b5bfb5.tar.gz
compiler: Add OptionFlags.NO_ARG to deprecated "--thread" option
It was defined with OptionArg.NONE and never took an extra argument. Regression of d8e810680f370fac7e9a5e80f8d94316707625c2
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 7394e45da..d425202f1 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -128,7 +128,7 @@ class Vala.Compiler {
{ "compile", 'c', 0, OptionArg.NONE, ref compile_only, "Compile but do not link", null },
{ "output", 'o', 0, OptionArg.FILENAME, ref output, "Place output in file FILE", "FILE" },
{ "debug", 'g', 0, OptionArg.NONE, ref debug, "Produce debug information", null },
- { "thread", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_deprecated, "Enable multithreading support (DEPRECATED AND IGNORED)", null },
+ { "thread", 0, OptionFlags.OPTIONAL_ARG | OptionFlags.NO_ARG, OptionArg.CALLBACK, (void*) option_deprecated, "Enable multithreading support (DEPRECATED AND IGNORED)", null },
{ "enable-mem-profiler", 0, 0, OptionArg.NONE, ref mem_profiler, "Enable GLib memory profiler", null },
{ "define", 'D', 0, OptionArg.STRING_ARRAY, ref defines, "Define SYMBOL", "SYMBOL..." },
{ "main", 0, 0, OptionArg.STRING, ref entry_point, "Use SYMBOL as entry point", "SYMBOL..." },