diff --git a/bin/dcg.py b/bin/dcg.py index 7db5cc7..8369f2c 100755 --- a/bin/dcg.py +++ b/bin/dcg.py @@ -244,7 +244,7 @@ def processFile(self, fileName): if __name__ == "__main__": - usage = "usage: %prog [options] dots-files" + usage = "usage: %prog -C [-D] [-T ] [-o ] [-v] [-M] " parser = OptionParser(usage=usage) parser.add_option("-C", "--config", dest="configFile") parser.add_option("-D", "--define", dest="define", action="append") @@ -279,6 +279,9 @@ def processFile(self, fileName): dcg.defines = defines dcg.outputPath = options.outputPath + if configFile is None or len(configFile) == 0: + parser.error("No config file given.") + dcg.loadConfig(configFile) if dcg.verbose: