summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-05-29 21:03:38 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-05-29 21:03:38 +0000
commit9833b785f0193b531e21d009297676c376e71dab (patch)
tree170edd01f6e02da2b06a08eac2329d13833207f3 /compiler
parent3ddc18114cd052c7a471b283a9b82da291c60208 (diff)
downloadvala-9833b785f0193b531e21d009297676c376e71dab.tar.gz
Use verbose error messages by default, display relative filenames in error
2008-05-29 Juerg Billeter <j@bitron.ch> * vala/valasourcefile.vala: * vala/valasourcereference.vala: * compiler/valacompiler.vala: Use verbose error messages by default, display relative filenames in error messages, fixes bug 535480 svn path=/trunk/; revision=1491
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 07085d5ff..845c77f00 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -44,7 +44,6 @@ class Vala.Compiler : Object {
static bool disable_checking;
static bool disable_non_null;
static bool non_null_experimental;
- static bool verbose;
static string cc_command;
[NoArrayLength]
static string[] cc_options;
@@ -76,7 +75,6 @@ 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 }
};
@@ -153,7 +151,7 @@ class Vala.Compiler : Object {
context.checking = !disable_checking;
context.non_null = !disable_non_null || non_null_experimental;
context.non_null_experimental = non_null_experimental;
- Report.set_verbose_errors (verbose);
+ Report.set_verbose_errors (!quiet_mode);
context.ccode_only = ccode_only;
context.compile_only = compile_only;