OptionParser which when combined
with its parse_args method
is very useful for parsing options from the command line.OptionParser(usage = "usage: %prog [options]", option_list = list(), add_help_option = TRUE, prog = NULL)parse_args finds a help option,
%prog is substituted with the value of the prog argument.OptionParserOption instances that will define how parse_args reacts to command line options.
OptionParserOption instances are usually created by make_option and can also be addedOptionParser instance.%prog in the usage message, the default is to use
the actual Rscript file name if called by an Rscript file and otherwise keep %prog.OptionParser class.optparse library, which this package is based on,
is described here: parse_args
make_option
add_option
OptionParser