LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.pipe.base.argumentParser.DatasetArgument Class Reference

Specify that the dataset type should be a command-line option. More...

Inheritance diagram for lsst.pipe.base.argumentParser.DatasetArgument:

Public Member Functions

def __init__
 
def required
 

Public Attributes

 name
 
 help
 
 default
 

Detailed Description

Specify that the dataset type should be a command-line option.

Somewhat more heavyweight than just using, e.g., None as a signal, but provides the ability to have more informative help and a default. Also more extensible in the future.

Parameters
[in]namename of command-line argument (including leading "--", if wanted); if omitted a suitable default is chosen
[in]helphelp string for the command-line option
[in]defaultdefault value; if None, then the option is required

Definition at line 171 of file argumentParser.py.

Constructor & Destructor Documentation

def lsst.pipe.base.argumentParser.DatasetArgument.__init__ (   self,
  name = None,
  help = "dataset type to process from input data repository",
  default = None 
)

Member Function Documentation

def lsst.pipe.base.argumentParser.DatasetArgument.required (   self)

Definition at line 193 of file argumentParser.py.

194  def required(self):
195  return self.default is None

Member Data Documentation

lsst.pipe.base.argumentParser.DatasetArgument.default

Definition at line 190 of file argumentParser.py.

lsst.pipe.base.argumentParser.DatasetArgument.help

Definition at line 189 of file argumentParser.py.

lsst.pipe.base.argumentParser.DatasetArgument.name

Definition at line 188 of file argumentParser.py.


The documentation for this class was generated from the following file: