fix(deps): update module github.com/spf13/pflag to v1.0.9

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-09-01 08:27:37 +00:00
committed by GitHub
parent dedeb24e9f
commit 0f477eaaa6
7 changed files with 80 additions and 14 deletions

View File

@ -48,7 +48,13 @@ func (d *timeValue) Type() string {
return "time"
}
func (d *timeValue) String() string { return d.Time.Format(time.RFC3339Nano) }
func (d *timeValue) String() string {
if d.Time.IsZero() {
return ""
} else {
return d.Time.Format(time.RFC3339Nano)
}
}
// GetTime return the time value of a flag with the given name
func (f *FlagSet) GetTime(name string) (time.Time, error) {