From 795eace73e193f0385863a9f66cae1b41529b998 Mon Sep 17 00:00:00 2001 From: laureanray Date: Fri, 14 Jul 2023 00:59:09 +0800 Subject: [PATCH] update search.go flag details --- cmd/search.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/cmd/search.go b/cmd/search.go index 6eb48d9..02d6aaa 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -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().