class documentation
class Options: (source)
Encapsulation of the configuration options.
Class Method | create |
Create options from kwargs. |
Method | __init__ |
Parse and encapsulate the configuration options. |
Method | __repr__ |
Undocumented |
Method | as |
Undocumented |
Method | set |
Undocumented |
Method | tweak |
Undocumented |
Constant | _HAS |
Undocumented |
Parse and encapsulate the configuration options. Also sets up some basic logger configuration. IMPORTANT: If creating an Options object from code, do not construct it directly! Call Options.create() instead. Args: argv_or_options: Either sys.argv[1:] (sys.argv[0] is the main script), or already parsed options object returned by ArgumentParser.parse_args. command_line: Set this to true when argv_or_options == sys.argv[1:]. Raises: sys.exit(2): bad option or input filenames.