Made -abort_on and -report_about preemptive if given as dashed start arguments
This commit is contained in:
@ -8897,7 +8897,7 @@ int Xorriso_prescan_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
1 ok, go on
|
||||
*/
|
||||
{
|
||||
int i, ret, was_dashed;
|
||||
int i, ret, was_dashed, was_report_about= 0, was_abort_on;
|
||||
char *cmd, *arg1;
|
||||
|
||||
for(i=1+(flag&1);i<argc;i++) {
|
||||
@ -8949,6 +8949,19 @@ int Xorriso_prescan_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
|
||||
sprintf(xorriso->info_text, "Disabling use of libreadline.");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
|
||||
|
||||
} else if(strcmp(cmd,"abort_on")==0 && was_dashed) {
|
||||
i++;
|
||||
if(!was_abort_on)
|
||||
Xorriso_option_abort_on(xorriso, arg1, 0);
|
||||
was_abort_on= 1;
|
||||
|
||||
} else if(strcmp(cmd,"report_about")==0 && was_dashed) {
|
||||
i++;
|
||||
if(!was_report_about)
|
||||
Xorriso_option_report_about(xorriso, arg1, 0);
|
||||
was_report_about= 1;
|
||||
|
||||
}
|
||||
}
|
||||
return(1);
|
||||
|
Reference in New Issue
Block a user