mkideal / cli

CLI - A package for building command line app with go
MIT License
732 stars 43 forks source link

ERR! unexpected end after 36 #33

Closed suntong closed 6 years ago

suntong commented 7 years ago

Hi there,

Please take a look at the code https://gist.github.com/suntong/7eed1480ce3e7f508b4d728547696a33

Here is what happens when I run it:

$ go run /tmp/picv.go
ERR! unexpected end after 36

I found that it all comes down to the "$" sign at https://gist.github.com/suntong/7eed1480ce3e7f508b4d728547696a33#file-picv-go-L21

removing it and the program works fine.

Looks like a bug, is it? Thx

mkideal commented 6 years ago

dft:".*\\.jpg$" should be changed to dft:".*\\.jpg$$" because $ is a special character!

suntong commented 6 years ago

Gotya. thx.