NAME

TaskForest::Options - Get options from command line and/or environment

SYNOPSIS

use TaskForest::Options;

my $o = &TaskForest::Options::getOptions();
# the above command will die if required options are not present

DOCUMENTATION

If you're just looking to use the taskforest application, the only documentation you need to read is that for TaskForest. You can do this either of the two ways:

perldoc TaskForest

OR

man TaskForest

If you're a developer and you want to understand the code, I would recommend that you read the pods in this order:

  • TaskForest

  • TaskForest::Job

  • TaskForest::Family

  • TaskForest::TimeDependency

  • TaskForest::LogDir

  • TaskForest::Options

  • TaskForest::StringHandleTier

  • TaskForest::StringHandle

Finally, read the documentation in the source. Great efforts have been made to keep it current and relevant.

DESCRIPTION

This is a convenience class that gets the required and optional command line parameters, and uses environment variables if command line parameters are not specified.

METHODS

getOptions()
Usage     : my $options = &TaskForest::Options::getOptions
Purpose   : This method returns a list of all the options passed
            in.  
Returns   : A hash ref of the options
Argument  : None
Throws    : "The following required options are missing"
            Various exceptions if the parameters passed in are of
            the wrong format. 
showHelp()
Usage     : showHelp()
Purpose   : This method prints help text
Returns   : Nothing
Argument  : None
Throws    : Nothing