Gitleaks v1.0.0 (#75)

major bump
This commit is contained in:
Zachary Rice authored and GitHub committed 2018-07-20 20:02:52 -05:00
1 parent 91eb014f17
commit 1f80d14f3f
685 files changed
+143450 -17228

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
package flags
import (
"reflect"
)
// Arg represents a positional argument on the command line.
type Arg struct {
// The name of the positional argument (used in the help)
Name string
// A description of the positional argument (used in the help)
Description string
// The minimal number of required positional arguments
Required int
// The maximum number of required positional arguments
RequiredMaximum int
value reflect.Value
tag multiTag
}
func (a *Arg) isRemaining() bool {
return a.value.Type().Kind() == reflect.Slice
}