fix(phy_simulators): enable the use of option -O to pass a configuration file to configmodule in phy simulators

This commit is contained in:
Romain Beurdouche
2024-06-25 10:38:09 +02:00
parent a476e18120
commit 327b9a8b70
11 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -146,11 +146,11 @@ int main(int argc, char **argv)
// logInit();
randominit(0);
while ((c = getopt(argc, argv, "--:df:hpVg:i:j:n:l:m:r:s:S:y:z:M:N:F:R:P:L:X:")) != -1) {
while ((c = getopt(argc, argv, "--:O:df:hpVg:i:j:n:l:m:r:s:S:y:z:M:N:F:R:P:L:X:")) != -1) {
/* ignore long options starting with '--' and their arguments that are handled by configmodule */
/* with this opstring getopt returns 1 for non-option arguments, refer to 'man 3 getopt' */
if (c == 1 || c == '-')
if (c == 1 || c == '-' || c == 'O')
continue;
printf("handling optarg %c\n",c);