marianogappa/chart

`-help` does not output help text before `stdin` closes.

Closed this issue · 2 comments

$ chart -help
# waits for stdin
^C

but,

$ echo | chart -help
  -date-format string
    	Sets the date format, according to https://golang.org/src/time/format.go.
  -debug
    	Use to make sure to double-check the chart is showing what you expect.
  -h	Show help.
  -help
    	Show help.
...

I expect -help to show help immediately without waiting for stdin.

Thanks for the issue report! Could you go get -u github.com/marianogappa/chart and validate if the fix works for you? Cheers.

@marianogappa It works, thank you :).