mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1613 from porglezomp-misc/version-flag-alias
Add --version and -version as aliases for -V
This commit is contained in:
commit
de6006fbc8
|
@ -317,6 +317,12 @@ int main(int argc, char **argv)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
if (argc == 2 && (!strcmp(argv[1], "-V") || !strcmp(argv[1], "-version") || !strcmp(argv[1], "--version")))
|
||||
{
|
||||
printf("%s\n", yosys_version_str);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int opt;
|
||||
while ((opt = getopt(argc, argv, "MXAQTVSgm:f:Hh:b:o:p:l:L:qv:tds:c:W:w:e:D:P:E:")) != -1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue