diff --git a/src/sshare/plugin/plugin.py b/src/sshare/plugin/plugin.py index 3d75c6b..558f2c2 100644 --- a/src/sshare/plugin/plugin.py +++ b/src/sshare/plugin/plugin.py @@ -14,6 +14,9 @@ import importlib import importlib.util +import sys + +from pathlib import Path from sshare.plugin.config import Flag from sshare.plugin.config import NoDefault @@ -49,9 +52,9 @@ class PluginLoader: ] @staticmethod - def at(logger=None, config=dict(), flags=dict(), *args): + def at(*args, logger=None, config=dict(), flags=dict()): return [ - Plugin.external(plugin, logger, config, flags) + Plugin.external(Path(plugin), logger, config, flags) for plugin in args ] diff --git a/src/sshare/validator.py b/src/sshare/validator.py index f4e21fd..64ba589 100644 --- a/src/sshare/validator.py +++ b/src/sshare/validator.py @@ -113,7 +113,7 @@ def main(): arg_parser.add_argument( "plugins", nargs="*", - help="plugin(s) to be validated", + help="plugin(s) to be validate (Default: all external plugins)", ) arguments = arg_parser.parse_args() if arguments.dev: