[vala] vapigen: Report error when omitting --library option



commit 3744170887548e06c845cfd8dc40d46ec069f162
Author: Jürg Billeter <j bitron ch>
Date:   Sun Mar 21 11:52:08 2010 +0100

    vapigen: Report error when omitting --library option
    
    Fixes bug 611322.

 vapigen/valavapigen.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index 3bcc4d6..686102a 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -1,6 +1,6 @@
 /* valavapigen.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -157,6 +157,8 @@ class Vala.VAPIGen : Object {
 					}
 				}
 			}
+		} else {
+			Report.error (null, "--library option must be specified");
 		}
 
 		if (packages != null) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]