fix(phy simulators): fix cmdline configmodule for NR_PHY simulators
This commit is contained in:
@@ -146,7 +146,14 @@ int main(int argc, char **argv)
|
|||||||
// logInit();
|
// logInit();
|
||||||
randominit(0);
|
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, "--: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 == '-')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
printf("handling optarg %c\n",c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
/*case 'f':
|
/*case 'f':
|
||||||
write_output_file = 1;
|
write_output_file = 1;
|
||||||
|
|||||||
@@ -243,7 +243,14 @@ int main(int argc, char **argv)
|
|||||||
exit_fun("[NR_PBCHSIM] Error, configuration module init failed\n");
|
exit_fun("[NR_PBCHSIM] Error, configuration module init failed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((c = getopt (argc, argv, "F:g:hIL:m:M:n:N:o:O:P:r:R:s:S:x:y:z:")) != -1) {
|
while ((c = getopt (argc, argv, "--:F:g:hIL:m:M:n:N:o:O:P:r:R:s:S:x:y:z:")) != -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 == '-')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
printf("handling optarg %c\n",c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
/*case 'f':
|
/*case 'f':
|
||||||
write_output_file=1;
|
write_output_file=1;
|
||||||
|
|||||||
@@ -164,7 +164,14 @@ int main(int argc, char **argv){
|
|||||||
|
|
||||||
randominit(0);
|
randominit(0);
|
||||||
|
|
||||||
while ((c = getopt (argc, argv, "hHaA:Cc:l:r:p:g:m:n:s:S:t:x:y:v:V:z:N:F:d:Z:L:R:E")) != -1) {
|
while ((c = getopt (argc, argv, "--:hHaA:Cc:l:r:p:g:m:n:s:S:t:x:y:v:V:z:N:F:d:Z:L:R:E")) != -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 == '-')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
printf("handling optarg %c\n",c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'a':
|
case 'a':
|
||||||
printf("Running AWGN simulation\n");
|
printf("Running AWGN simulation\n");
|
||||||
|
|||||||
@@ -313,7 +313,13 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
randominit(0);
|
randominit(0);
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "c:hn:o:s:FIL:N:R:S:T:")) != -1) {
|
while ((c = getopt(argc, argv, "--:c:hn:o:s:FIL:N:R:S:T:")) != -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 == '-')
|
||||||
|
continue;
|
||||||
|
|
||||||
printf("SIDELINK PSBCH SIM: handling optarg %c\n", c);
|
printf("SIDELINK PSBCH SIM: handling optarg %c\n", c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'c':
|
case 'c':
|
||||||
|
|||||||
@@ -155,7 +155,14 @@ int main(int argc, char **argv)
|
|||||||
randominit(0);
|
randominit(0);
|
||||||
logInit();
|
logInit();
|
||||||
|
|
||||||
while ((c = getopt (argc, argv, "f:hA:f:g:i:I:P:B:b:t:T:m:n:r:o:s:S:x:y:z:N:F:GR:IL:q:cd:")) != -1) {
|
while ((c = getopt (argc, argv, "--:f:hA:f:g:i:I:P:B:b:t:T:m:n:r:o:s:S:x:y:z:N:F:GR:IL:q:cd:")) != -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 == '-')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
printf("handling optarg %c\n",c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'f':
|
case 'f':
|
||||||
//write_output_file=1;
|
//write_output_file=1;
|
||||||
|
|||||||
@@ -165,8 +165,15 @@ int main(int argc, char **argv)
|
|||||||
//logInit();
|
//logInit();
|
||||||
randominit(0);
|
randominit(0);
|
||||||
|
|
||||||
//while ((c = getopt(argc, argv, "df:hpg:i:j:n:l:m:r:s:S:y:z:M:N:F:R:P:")) != -1) {
|
//while ((c = getopt(argc, argv, "--:df:hpg:i:j:n:l:m:r:s:S:y:z:M:N:F:R:P:")) != -1) {
|
||||||
while ((c = getopt(argc, argv, "hg:n:s:S:py:z:M:N:R:F:m:l:q:r:W:")) != -1) {
|
while ((c = getopt(argc, argv, "--:hg:n:s:S:py:z:M:N:R:F:m:l:q:r:W:")) != -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 == '-')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
printf("handling optarg %c\n",c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
/*case 'f':
|
/*case 'f':
|
||||||
write_output_file = 1;
|
write_output_file = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user