diff options
author | Patrick Lehmann <Paebbels@gmail.com> | 2022-06-19 21:40:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 21:40:35 +0200 |
commit | 4afeced94eba857e929e7eaa4ca2899db69be520 (patch) | |
tree | bbbe8e33a86ca21cd9ae68e0eb813c9bf2269cf1 /pyGHDL/cli/dom.py | |
parent | 6080383b327571d366d3ed69bcf3cd4257a20010 (diff) | |
parent | 24f4de4220f3635afc8c4334c5805e874329e396 (diff) | |
download | ghdl-4afeced94eba857e929e7eaa4ca2899db69be520.tar.gz ghdl-4afeced94eba857e929e7eaa4ca2899db69be520.tar.bz2 ghdl-4afeced94eba857e929e7eaa4ca2899db69be520.zip |
Bumped dependencies to support pyTooling ≥2.0.
Diffstat (limited to 'pyGHDL/cli/dom.py')
-rwxr-xr-x | pyGHDL/cli/dom.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py index 1ec168842..20a49d8eb 100755 --- a/pyGHDL/cli/dom.py +++ b/pyGHDL/cli/dom.py @@ -41,7 +41,7 @@ from pyGHDL.dom import DOMException from pyGHDL.libghdl import LibGHDLException from pyTooling.Decorators import export -from pyTooling.MetaClasses import Singleton +from pyTooling.MetaClasses import ExtendedType from pyTooling.TerminalUI import LineTerminal, Severity from pyAttributes import Attribute from pyAttributes.ArgParseAttributes import ( @@ -118,10 +118,6 @@ class Application(LineTerminal, ArgParseMixin): def __init__(self, debug=False, verbose=False, quiet=False, sphinx=False): super().__init__(verbose, debug, quiet) - # Initialize the Terminal class - # -------------------------------------------------------------------------- - Singleton.Register(LineTerminal, self) - # Initialize DOM with an empty design # -------------------------------------------------------------------------- self._design = Design() @@ -311,6 +307,9 @@ class Application(LineTerminal, ArgParseMixin): for architecture in architectures: entity.Architectures.append(architecture) + if not self._design.Documents: + self.WriteFatal(f"No files processed at all.") + PP = PrettyPrint() buffer = [] @@ -347,7 +346,7 @@ def main(): # mccabe:disable=MC0001 try: # handover to a class instance - app = Application(debug, verbose, quiet) + app = Application() # debug, verbose, quiet) app.Run() app.exit() except PrettyPrintException as ex: |