Closed tobynet closed 5 years ago
If the theme does not exist, the longcat causes panic. This is not easy-to-understand for humankind.
-themes
ref. Supporting theme mattn/longcat#12
$ go run main.go -n 2 -H -t wlongcat panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x████████] goroutine 1 [running]: main.main() ████████████████████████████████████████████longcat/main.go:151 +0x4d5 exit status 2
$ go run main.go -n 2 -H -t wlongcat ████████ ████ theme does not exist: wlongcat exit status 1 $ go run main.go -themes longcat tacgnol
Thanks
Motivation
If the theme does not exist, the longcat causes panic. This is not easy-to-understand for humankind.
-themes
option to list themesref. Supporting theme mattn/longcat#12
Before
After