8000 Merge pull request #1439 from hmiyado/fix-timestamp-getvalue · urfave/cli@c8147a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8147a4

Browse files
authored
Merge pull request #1439 from hmiyado/fix-timestamp-getvalue
Fix timestamp flag error when using help -- I'm merging this with the codecov patch check failing because this fixes a bug in code that wasn't sufficiently covered prior to the fix. In other words, I don't consider this codecov failure to be specific to this PR.
2 parents a91950f + 6d67b2d commit c8147a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flag_timestamp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (f *TimestampFlag) GetCategory() string {
9090
// GetValue returns the flags value as string representation and an empty
9191
// string if the flag takes no value at all.
9292
func (f *TimestampFlag) GetValue() string {
93-
if f.Value != nil {
93+
if f.Value != nil && f.Value.timestamp != nil {
9494
return f.Value.timestamp.String()
9595
}
9696
return ""

0 commit comments

Comments
 (0)
0