This commit is contained in:
Gnarwhal 2024-09-14 18:14:28 +00:00
parent f0f49cce18
commit 52fe1ff777
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
2 changed files with 6 additions and 3 deletions

View file

@ -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
]

View file

@ -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: