Merge pull request #2792 from myk002/myk_seedwatch

[seedwatch] fix parameter parsing when setting targets
develop
Myk 2023-02-03 15:35:54 -08:00 committed by GitHub
commit 29f56a6c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

@ -36,6 +36,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## New Plugins
## Fixes
- `seedwatch`: fix parameter parsing when setting targets
## Misc Improvements

@ -55,8 +55,8 @@ function parse_commandline(...)
print_status()
elseif command == 'clear' then
set_target('all', 0)
elseif positionals[2] and positionals[3] then
set_target(positionals[2], positionals[3])
elseif positionals[2] then
set_target(command, positionals[2])
else
return false
end