3.1. Generic Function for CL Processing
-
The command line processing used to occupy a large part of the main()
function of Freecell Solver.
-
Instead, recent versions of Freecell Solver designated a special function (
in the cmd_line.c module) to configure an instance according to the
command line arguments that are passed to it.
-
This enabled writing other programs which configure themselves according to
this scheme. (as all they needed to do was call this function)
-
It also allows for programs that use FCS and for its language bindings, to
configure themselves using this one textual interface, instead of a multitude
of separate configuration functions.
Written by Shlomi Fish