1
0

support for arguments to plugin commands:

- add a simple parser that only figures out where the config is,
   and does not complain if args are unknown
This commit is contained in:
ThomasV
2025-03-16 15:00:24 +01:00
parent d2fa404e06
commit 9d1ffe0c37
3 changed files with 48 additions and 15 deletions

View File

@@ -15,6 +15,6 @@ async def push(self: 'Commands', plugin: 'LabelsPlugin' = None, wallet=None) ->
@plugin_command('w', plugin_name)
async def pull(self: 'Commands', plugin: 'LabelsPlugin' = None, wallet=None) -> int:
async def pull(self: 'Commands', plugin: 'LabelsPlugin' = None, wallet=None, force=False) -> int:
""" pull labels from server """
return await plugin.pull_thread(wallet, force=False)
return await plugin.pull_thread(wallet, force=force)