114k views
0 votes
Which option modifier tells a program not to exit with an error if it does not recognize the option, but instead to issue a warning?

a) --safe
b) --ignore-error
c) --no-exit
d) --warn-only

User LinnTroll
by
7.7k points

1 Answer

3 votes

Final answer:

The option modifier that allows a program to issue warnings instead of exiting with an error upon unrecognizable options is (d) --warn-only.

Step-by-step explanation:

The option modifier that tells a program not to exit with an error if it does not recognize the option, but instead to issue a warning, is (d) --warn-only. This modifier is used in command line programs and scripts to provide flexibility in the way options are handled. When --warn-only is used, the program will continue to run even if it encounters an unknown option, but it will provide a warning message to inform the user that an unrecognized option was found. This allows for better debugging and user feedback without stopping the execution of the program.

User Yohan Zhou
by
7.5k points