diff options
Diffstat (limited to 'compiler/valacompiler.vala')
-rw-r--r-- | compiler/valacompiler.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 8d0b7c807..32e873d93 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -43,6 +43,7 @@ class Vala.Compiler : Object { static bool disable_assert; static bool disable_checking; static bool non_null; + static bool verbose; static string cc_command; [NoArrayLength] static string[] cc_options; @@ -73,6 +74,7 @@ class Vala.Compiler : Object { { "Xcc", 'X', 0, OptionArg.STRING_ARRAY, out cc_options, "Pass OPTION to the C compiler", "OPTION..." }, { "save-temps", 0, 0, OptionArg.NONE, out save_temps, "Keep temporary files", null }, { "quiet", 'q', 0, OptionArg.NONE, ref quiet_mode, "Do not print messages to the console", null }, + { "verbose", 'v', 0, OptionArg.NONE, ref verbose, "Include the source line text when reporting errors or warnings." }, { "", 0, 0, OptionArg.FILENAME_ARRAY, out sources, null, "FILE..." }, { null } }; @@ -143,6 +145,7 @@ class Vala.Compiler : Object { context.assert = !disable_assert; context.checking = !disable_checking; context.non_null = non_null; + Report.set_verbose_errors (verbose); context.ccode_only = ccode_only; context.compile_only = compile_only; |