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
+3 -3
View File
@@ -430,11 +430,11 @@ int main(int argc, char *argv[])
}
logInit();
while ((c = getopt (argc, argv, "--:q:r:s:S:l:G:n:d:i:t:u:hv:")) != -1) {
while ((c = getopt (argc, argv, "--:O:q:r:s:S:l:G:n:d:i:t:u:hv:")) != -1) {
/* ignore long options starting with '--' and their arguments that are handled by configmodule */
/* ignore long options starting with '--', option '-O' 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);
+3 -3
View File
@@ -38,11 +38,11 @@ int main(int argc, char *argv[])
}
logInit();
while ((arguments = getopt (argc, argv, "--:s:d:f:m:i:l:a:p:hqgFL:k:")) != -1) {
while ((arguments = getopt (argc, argv, "--:O:s:d:f:m:i:l:a:p:hqgFL:k:")) != -1) {
/* ignore long options starting with '--' and their arguments that are handled by configmodule */
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
/* with this opstring getopt returns 1 for non-option arguments, refer to 'man 3 getopt' */
if (arguments == 1 || arguments == '-')
if (arguments == 1 || arguments == '-' || arguments == 'O')
continue;
printf("handling optarg %c\n",arguments);
@@ -32,11 +32,11 @@ int main(int argc, char *argv[])
}
logInit();
while ((arguments = getopt(argc, argv, "--:s:d:f:l:i:mhg")) != -1) {
while ((arguments = getopt(argc, argv, "--:O:s:d:f:l:i:mhg")) != -1) {
/* ignore long options starting with '--' and their arguments that are handled by configmodule */
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
/* with this opstring getopt returns 1 for non-option arguments, refer to 'man 3 getopt' */
if (arguments == 1 || arguments == '-')
if (arguments == 1 || arguments == '-' || arguments == 'O')
continue;
printf("handling optarg %c\n",arguments);