:- package(optparse).

% note: priority before fsyntax (similar to menu, make, dcg, etc.)
:- load_compilation_module(library(optparse/optparse_tr)).
:- add_sentence_trans(optparse_tr:optparse_tr/3, 350).

:- discontiguous exec_simple_option/4.
:- discontiguous flag_option/3.

:- use_module(library(optparse/optparse_rt), [parse_args/4]).

% (For code generated by the package)
:- use_module(engine(messages_basic), [message/2]). % for help/usage messages
:- use_module(engine(runtime_control), [set_prolog_flag/2]).

parse_args(Args) :- parse_args(Args, exec_option, default_action, usage).
