fix(phy_simulators): enable the use of option -O to pass a configuration file to configmodule in phy simulators
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user