![]() Slice Tools libFoundation |
example-minimal.outSample output from example-minimal.Notice that by adding a few lines of code to instantiate a Foundation object, all of the standard options are handled without complicated options handling code. In addition to easy and robust command line options handling, logging services and configuration file parsing are also available for use immediately. ./example-minimal In doWork() ./example-minimal -h (stderr) Foundation minimal example --append Log messages should append to old logfile --configfile <argument> Set the config file --debug <argument> Set filter levels for logging (fl[,Category=fl[...]] --filterlevel <argument> Set filter levels for logging (fl[,Category=fl[...]] --depend Get dependency information -h Get this help --help Get this help --logfile <argument> Set logfile for logging -V Get the version info --version Get the version info ./example-minimal --version (stderr) Foundation example-minimal 1.0 ./example-minimal --depend (stderr) Dependencies: Foundation |