Minor bug fixes

This commit is contained in:
vel 2021-08-22 12:03:45 -07:00
parent b371f50a0e
commit 61e20e914f
Signed by: velvox
GPG Key ID: 1C8200C1D689CEF5
2 changed files with 4 additions and 1 deletions

View File

@ -269,6 +269,9 @@ func findAllOptionArgs(argString []string, keys []string, infoArgs *orderedmap.O
continue continue
} }
vv := iA.(*ArgInfo) vv := iA.(*ArgInfo)
if vv.Match == ArgContent {
return *args, true, argString, keys
}
if vv.Required { if vv.Required {
if vv.TypeGuard != String { if vv.TypeGuard != String {
var value string var value string

View File

@ -35,7 +35,7 @@ func RemoveItems(slice []string, indexes []int) []string {
} }
copy(newSlice, slice) copy(newSlice, slice)
for _, v := range indexes { for _, v := range indexes {
if len(newSlice) > v+1 && v != 0 { if len(newSlice) < v+1 && v != 0 {
v = v - 1 v = v - 1
} }
//newSlice[v] = newSlice[len(newSlice)-1] //newSlice[v] = newSlice[len(newSlice)-1]