luigi.cmdline_parser module

This module contains luigi internal parsing logic. Things exposed here should be considered internal to luigi.

class luigi.cmdline_parser.CmdlineParser(cmdline_args)[source]

Bases: object

Helper for parsing command line arguments and used as part of the context when instantiating task objects.

Normal luigi users should just use luigi.run().

Initialize cmd line args

classmethod get_instance()[source]

Singleton getter

classmethod global_instance(cmdline_args, allow_override=False)[source]

Meant to be used as a context manager.

get_task_obj()[source]

Get the task object