Adding support for --plugin=<plugin path>

This commit is contained in:
Anton Hvornum 2021-05-24 15:29:59 +02:00
parent 7b1096bfa6
commit 94bceb2199
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ def initialize_arguments():
arguments = initialize_arguments()
from .lib.plugins import plugins, load_plugin # This initiates the plugin loading ceremony
if arguments.get('plugin', None):
load_plugin(arguments['plugin'])
# TODO: Learn the dark arts of argparse... (I summon thee dark spawn of cPython)