mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-13 18:29:11 +00:00
go: go get -u ./... && go mod vendor && go mod tidy
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
a9c6969125
commit
e73ff94ef9
162 changed files with 1835 additions and 2997 deletions
7
vendor/github.com/urfave/cli/v2/flag_bool.go
generated
vendored
7
vendor/github.com/urfave/cli/v2/flag_bool.go
generated
vendored
|
@ -52,7 +52,7 @@ func (b *boolValue) String() string {
|
|||
func (b *boolValue) IsBoolFlag() bool { return true }
|
||||
|
||||
func (b *boolValue) Count() int {
|
||||
if b.count != nil {
|
||||
if b.count != nil && *b.count > 0 {
|
||||
return *b.count
|
||||
}
|
||||
return 0
|
||||
|
@ -130,6 +130,11 @@ func (f *BoolFlag) Apply(set *flag.FlagSet) error {
|
|||
if count == nil {
|
||||
count = new(int)
|
||||
}
|
||||
|
||||
// since count will be incremented for each alias as well
|
||||
// subtract number of aliases from overall count
|
||||
*count -= len(f.Aliases)
|
||||
|
||||
if dest == nil {
|
||||
dest = new(bool)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue