Fix slice out of bounds

Closes #1
This commit is contained in:
Sasha Koshka 2024-12-12 01:17:52 -05:00
parent d6e397cc10
commit 541886e9ad

1
cli.go
View File

@ -81,6 +81,7 @@ func (this *Cli) Parse (args []string) (*Cli, error) {
if len(args) > 0 { args = args[1:] }
next := func () string {
if len(args) < 1 { return "" }
args = args[1:]
if len(args) > 0 {
return args[0]