fix param parsing for setting targets

develop
Myk Taylor 2023-02-03 15:27:01 -08:00
parent 4a21b0843f
commit 43d1a1563b
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 2 deletions

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