3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Added yosys -H for command list

This commit is contained in:
Clifford Wolf 2014-01-30 12:32:59 +01:00
parent 34b39ec28a
commit 672229eda5

View file

@ -473,7 +473,7 @@ int main(int argc, char **argv)
} }
int opt; int opt;
while ((opt = getopt(argc, argv, "VSm:f:h:b:o:p:l:qv:ts:c:")) != -1) while ((opt = getopt(argc, argv, "VSm:f:Hh:b:o:p:l:qv:ts:c:")) != -1)
{ {
switch (opt) switch (opt)
{ {
@ -499,6 +499,9 @@ int main(int argc, char **argv)
case 'f': case 'f':
frontend_command = optarg; frontend_command = optarg;
break; break;
case 'H':
passes_commands.push_back("help");
break;
case 'h': case 'h':
passes_commands.push_back(stringf("help %s", optarg)); passes_commands.push_back(stringf("help %s", optarg));
break; break;
@ -563,6 +566,9 @@ int main(int argc, char **argv)
fprintf(stderr, " -f backend\n"); fprintf(stderr, " -f backend\n");
fprintf(stderr, " use the specified front for the input files on the command line\n"); fprintf(stderr, " use the specified front for the input files on the command line\n");
fprintf(stderr, "\n"); fprintf(stderr, "\n");
fprintf(stderr, " -H\n");
fprintf(stderr, " print the command list\n");
fprintf(stderr, "\n");
fprintf(stderr, " -h command\n"); fprintf(stderr, " -h command\n");
fprintf(stderr, " print the help message for the specified command\n"); fprintf(stderr, " print the help message for the specified command\n");
fprintf(stderr, "\n"); fprintf(stderr, "\n");