If a user types invalid arguments to a SWI-Prolog program that uses optparse, it throw an error, which seems reasonable enough behavior.
However, it also prints the opt_help message, which might be better left to the application programmer.
If a user types invalid arguments to a SWI-Prolog program that uses optparse, it throw an error, which seems reasonable enough behavior.
However, it also prints the opt_help message, which might be better left to the application programmer.