aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-08-23 21:20:25 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 21:20:25 +0200
commita3255c69df60fee697e1ee546052a8abe86fb4ff (patch)
tree524c352b917e25f61f7c7b1aeec19bf831c41f7f /pyGHDL/cli
parent8cf15b9abb3a197857627f55ef28111f9492d9d5 (diff)
downloadghdl-a3255c69df60fee697e1ee546052a8abe86fb4ff.tar.gz
ghdl-a3255c69df60fee697e1ee546052a8abe86fb4ff.tar.bz2
ghdl-a3255c69df60fee697e1ee546052a8abe86fb4ff.zip
black: rerun, to pick pyproject settings
Diffstat (limited to 'pyGHDL/cli')
-rwxr-xr-xpyGHDL/cli/dom.py20
-rw-r--r--pyGHDL/cli/lsp.py12
2 files changed, 8 insertions, 24 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py
index 69a0b92ec..99f59c277 100755
--- a/pyGHDL/cli/dom.py
+++ b/pyGHDL/cli/dom.py
@@ -169,13 +169,9 @@ class Application(LineTerminal, ArgParseMixin):
# Change error and warning reporting
# --------------------------------------------------------------------------
- self._LOG_MESSAGE_FORMAT__[
- Severity.Fatal
- ] = "{DARK_RED}[FATAL] {message}{NOCOLOR}"
+ self._LOG_MESSAGE_FORMAT__[Severity.Fatal] = "{DARK_RED}[FATAL] {message}{NOCOLOR}"
self._LOG_MESSAGE_FORMAT__[Severity.Error] = "{RED}[ERROR] {message}{NOCOLOR}"
- self._LOG_MESSAGE_FORMAT__[
- Severity.Warning
- ] = "{YELLOW}[WARNING] {message}{NOCOLOR}"
+ self._LOG_MESSAGE_FORMAT__[Severity.Warning] = "{YELLOW}[WARNING] {message}{NOCOLOR}"
self._LOG_MESSAGE_FORMAT__[Severity.Normal] = "{GRAY}{message}{NOCOLOR}"
# class properties
@@ -199,15 +195,9 @@ class Application(LineTerminal, ArgParseMixin):
# ============================================================================
# common arguments valid for all commands
# ----------------------------------------------------------------------------
- @CommonSwitchArgumentAttribute(
- "-d", "--debug", dest="debug", help="Enable debug mode."
- )
- @CommonSwitchArgumentAttribute(
- "-v", "--verbose", dest="verbose", help="Print out detailed messages."
- )
- @CommonSwitchArgumentAttribute(
- "-q", "--quiet", dest="quiet", help="Reduce messages to a minimum."
- )
+ @CommonSwitchArgumentAttribute("-d", "--debug", dest="debug", help="Enable debug mode.")
+ @CommonSwitchArgumentAttribute("-v", "--verbose", dest="verbose", help="Print out detailed messages.")
+ @CommonSwitchArgumentAttribute("-q", "--quiet", dest="quiet", help="Reduce messages to a minimum.")
def Run(self):
ArgParseMixin.Run(self)
diff --git a/pyGHDL/cli/lsp.py b/pyGHDL/cli/lsp.py
index 8b149cdf3..581943218 100644
--- a/pyGHDL/cli/lsp.py
+++ b/pyGHDL/cli/lsp.py
@@ -83,15 +83,9 @@ def _generateCLIParser() -> ArgumentParser:
parser = ArgumentParser(
description="VHDL Language Protocol Server. Find info about clients in `ghdl/ghdl-language-server <https://github.com/ghdl/ghdl-language-server>`__."
)
- parser.add_argument(
- "--version", "-V", action="version", version="%(prog)s " + version.__version__
- )
- parser.add_argument(
- "--verbose", "-v", action="count", default=0, help="Show debug output"
- )
- parser.add_argument(
- "--log-file", help="Redirect logs to the given file instead of stderr"
- )
+ parser.add_argument("--version", "-V", action="version", version="%(prog)s " + version.__version__)
+ parser.add_argument("--verbose", "-v", action="count", default=0, help="Show debug output")
+ parser.add_argument("--log-file", help="Redirect logs to the given file instead of stderr")
parser.add_argument(
"--trace-file",
help="Save RPC data to FILE.in and FILE.out (overrides :envvar:`GHDL_LS_TRACE`)",