llama.flags.cli module

CLI tools for Flags.

class llama.flags.cli.FlagAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)

Bases: argparse.Action

Parses flags provided at the command line. Sets the returned argument to an ImmutableDict containing the desired flags (either specified by preset or explicit deviations from defaults) after validating that the provided values are valid and quitting with a helpful message if they are not.

class llama.flags.cli.Parsers

Bases: object

CLI flags related to flags. Same idea as llama.cli.Parsers but with narrower scope.

flags = ArgumentParser(prog='sphinx-build', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=False)
class llama.flags.cli.PrintFlagsAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)

Bases: argparse.Action

Action to show flag help and quit.