aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-01-05 19:40:15 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-05 21:02:21 +0100
commit4d37b288fc3c94a912326b5e4b1f4e3585d6a4ef (patch)
tree1d5367b0638c8abc2a25dc7defffd7630a7b6f6f /src
parentb4a301a37fc2b4f5515a7aa611c858ba6cba837f (diff)
downloadghdl-4d37b288fc3c94a912326b5e4b1f4e3585d6a4ef.tar.gz
ghdl-4d37b288fc3c94a912326b5e4b1f4e3585d6a4ef.tar.bz2
ghdl-4d37b288fc3c94a912326b5e4b1f4e3585d6a4ef.zip
cli: support '[--]version --ref' and '[--]version --hash' too
Diffstat (limited to 'src')
-rw-r--r--src/ghdldrv/ghdlmain.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ghdldrv/ghdlmain.adb b/src/ghdldrv/ghdlmain.adb
index 6d768bbbe..e884dbe13 100644
--- a/src/ghdldrv/ghdlmain.adb
+++ b/src/ghdldrv/ghdlmain.adb
@@ -261,11 +261,11 @@ package body Ghdlmain is
use Simple_IO;
begin
if Args'Length /= 0 then
- if Args (1).all = "ref" then
+ if Args (1).all = "ref" or else Args (1).all = "--ref" then
Put_Line (Version.Ghdl_Ref);
return;
end if;
- if Args (1).all = "hash" then
+ if Args (1).all = "hash" or else Args (1).all = "--hash" then
Put_Line (Version.Ghdl_Hash);
return;
end if;