From 4d37b288fc3c94a912326b5e4b1f4e3585d6a4ef Mon Sep 17 00:00:00 2001 From: umarcor Date: Tue, 5 Jan 2021 19:40:15 +0100 Subject: cli: support '[--]version --ref' and '[--]version --hash' too --- src/ghdldrv/ghdlmain.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ghdldrv') 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; -- cgit v1.2.3