ofx-processor/ofx_processor/main.py
2020-02-29 11:45:50 +01:00

20 lines
484 B
Python

import click
from ofx_processor.utils import ynab
from ofx_processor.utils.utils import discover_processors
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
@click.group(context_settings=CONTEXT_SETTINGS)
@click.version_option()
def cli():
pass # This function acts only as a group to collect other subcommands
# As such, it intentionally has no body
cli.add_command(ynab.config, name="config")
discover_processors(cli)
if __name__ == "__main__":
cli()