Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# (c) Stefan Countryman, 2019
3"""
4A unified interface for accessing LLAMA functionality. Call the available
5sub-commands to see their capabilities; for example, to list the file-related
6commands available, run ``llama files --help``; to see available event
7listeners, run ``llama listen --help``, and to activate the GCN Notice
8listener, run ``llama listen gcn``.
10By default, all warnings about missing optional feature warnings (specified
11using ``llama.classes.OptionalFeatureWarning``) are supressed. If you'd like to
12see which features are missing, set ``LLAMA_OPTIONAL_FEATURE_WARNINGS=true``
13when calling this script. This will inform you of which features are missing
14and which workarounds are active based on the limitations of your LLAMA
15installation, but for most everyday work, these warnings are excessive and
16useless.
18Examples
19--------
21Show warnings about optional LLAMA features that may not work on your current
22installation:
24.. code::
26 LLAMA_OPTIONAL_FEATURE_WARNINGS=true llama -h
28"""
30from llama.cli import RecursiveCli
32cli = RecursiveCli.from_module('llama', description=__doc__)
33main = cli.main # pylint: disable=invalid-name
34get_parser = cli.get_parser
37if __name__ == '__main__':
38 main()