Skip to content

Commit

Permalink
update search.go flag details
Browse files Browse the repository at this point in the history
  • Loading branch information
laureanray committed Jul 13, 2023
1 parent d71dbf5 commit 795eace
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,11 @@ var (
func init() {
searchCmd.
PersistentFlags().
StringVarP(&selectedSite, "site", "s", "legacy", `select which site to use
options:
"legacy"
"new"
`)
StringVarP(&selectedSite, "site", "s", "legacy", `which website to use [legacy, new]`)

searchCmd.
PersistentFlags().
StringVarP(&selectedFilter, "filter", "f", "title", `select which filter to use
options:
"title"
"author"
"isbn"
`)
StringVarP(&selectedFilter, "filter", "f", "title", `search by [title, author, isbn]`)

searchCmd.
PersistentFlags().
Expand Down

0 comments on commit 795eace

Please sign in to comment.