Bunchhieng / hnreader

Open programming news with your favorite browser using command line
https://bunchhieng.github.io/hnreader/
MIT License
7 stars 10 forks source link

Help text doesn't list all Flags option (source, tabs and browser) #15

Closed Bunchhieng closed 5 years ago

Bunchhieng commented 5 years ago

Current help text:

$ go run main.go
NAME:
   hnreader - Open multiple news feed in your favorite browser with command line.

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   v1.1

AUTHOR:
   Bunchhieng Soth <Bunchhieng@gmail.com>

COMMANDS:
     run, r   Start hnreader with default option (10 news and chrome browser)
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)
zpeters commented 5 years ago

I will look at this

zpeters commented 5 years ago

In looking at the code, i think it is the behavior is correct. To see the additional help the command syntax is hnreader help run, this will show the tabs, browser and source options. i think this is what you want

Bunchhieng commented 5 years ago

ah that's right. I remember digging through the cli project to show this. good catch. will close this issue. Thanks for investigating. @zpeters