Add warning if --force option is active
authorReto Buerki <reet@codelabs.ch>
Thu, 14 Sep 2017 12:46:35 +0000 (14:46 +0200)
committerReto Buerki <reet@codelabs.ch>
Fri, 15 Sep 2017 07:16:18 +0000 (09:16 +0200)
mugenhwcfg.py

index 02b73bf..b05f7e2 100755 (executable)
@@ -100,6 +100,10 @@ def handleArgs():
 def main(forcecreate=False):
     print "=== Mugenhwcfg Start ==="
 
+    if forcecreate:
+        message.addWarning("Force create is active, document may contain "
+                           "errors")
+
     print "> Initialising..."
     init()
     from src import creator, schemadata