#!python

import argparse
from kahi.PluginGenerator import PluginGenerator

parser = argparse.ArgumentParser(
    description='ETL for bibliographic data.')

parser.add_argument('--plugin', type=str,
                    help='Generate a plugin package directory, please provide the plugin name ex: --plugin test  , the output is Kahi_test')


args = parser.parse_args()

if __name__ == '__main__':
    # create instance of kahi with the workflow file as a parameter
    if args.plugin:
        pg = PluginGenerator(args.plugin)
        pg.generate()
