From d71dbf5e4b1590238a4ccdfb6a85721e946dd490 Mon Sep 17 00:00:00 2001 From: laureanray Date: Fri, 14 Jul 2023 00:58:14 +0800 Subject: [PATCH] update README.md --- README.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5c107a0..632f833 100644 --- a/README.md +++ b/README.md @@ -32,22 +32,19 @@ Search for a book using the old website (default) clibgen search "Eloquent JavaScript" ``` -Search for a book using the newer website (this is useful if for some reason the old website is down or the mirrors are not working) -`-s or -site` flag +#### Search -```shell -clibgen search -s "new" "Eloquent JavaScript" -``` +Usage: +` clibgen search [flags]` -```shell -clibgen search -s "legacy" "Eloquent JavaScript" -``` +Flags: +- -f, --filter string search by [title, author, isbn] (default "title") +- -h, --help help for search +- -n, --number of results int number of result(s) to be displayed maximum: 25 (default 10) +- -o, --output string Output directory (default "./") +- -s, --site string which website to use [legacy, new] (default "legacy") -Limit search results (default: 10) -```shell -clibgen search -n 5 "Eloquent JavaScript" -``` ### Found an issue?