mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Added -h command line option
This commit is contained in:
parent
6a7d7e847d
commit
96084e9864
|
@ -473,7 +473,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
int opt;
|
int opt;
|
||||||
while ((opt = getopt(argc, argv, "VSm:f:b:o:p:l:qv:ts:c:")) != -1)
|
while ((opt = getopt(argc, argv, "VSm:f:h: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(stringf("help %s", optarg));
|
||||||
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
backend_command = optarg;
|
backend_command = optarg;
|
||||||
break;
|
break;
|
||||||
|
@ -536,7 +539,7 @@ int main(int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
fprintf(stderr, "Usage: %s [-V] [-S] [-q] [-v <level>[-t] [-l <logfile>] [-o <outfile>] [-f <frontend>]\n", argv[0]);
|
fprintf(stderr, "Usage: %s [-V] [-S] [-q] [-v <level>[-t] [-l <logfile>] [-o <outfile>] [-f <frontend>] [-h cmd] \\\n", argv[0]);
|
||||||
fprintf(stderr, " %*s[{-s|-c} <scriptfile>] [-p <pass> [-p ..]] [-b <backend>] [-m <module_file>] [<infile> [..]]\n", int(strlen(argv[0])+1), "");
|
fprintf(stderr, " %*s[{-s|-c} <scriptfile>] [-p <pass> [-p ..]] [-b <backend>] [-m <module_file>] [<infile> [..]]\n", int(strlen(argv[0])+1), "");
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
fprintf(stderr, " -q\n");
|
fprintf(stderr, " -q\n");
|
||||||
|
@ -560,6 +563,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 command\n");
|
||||||
|
fprintf(stderr, " print the help message for the specified command\n");
|
||||||
|
fprintf(stderr, "\n");
|
||||||
fprintf(stderr, " -s scriptfile\n");
|
fprintf(stderr, " -s scriptfile\n");
|
||||||
fprintf(stderr, " execute the commands in the script file\n");
|
fprintf(stderr, " execute the commands in the script file\n");
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
|
Loading…
Reference in a new issue