From 6176d0f30aa0afe44ecb3cbbe45a09bc74cf7c2a Mon Sep 17 00:00:00 2001 From: Mirochill <200482516+Mirochill@users.noreply.github.com> Date: Mon, 25 May 2026 21:54:16 +0200 Subject: [PATCH] Correct DOI file argument messages --- PyPaperBot/__main__.py | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PyPaperBot/__main__.py b/PyPaperBot/__main__.py index de15806..77d6d32 100644 --- a/PyPaperBot/__main__.py +++ b/PyPaperBot/__main__.py @@ -130,7 +130,7 @@ def main(): proxy(pchain) if args.query is None and args.doi_file is None and args.doi is None and args.cites is None: - print("Error, provide at least one of the following arguments: --query, --file, or --cites") + print("Error, provide at least one of the following arguments: --query, --doi-file, --doi, or --cites") sys.exit() if (args.query is not None and args.doi_file is not None) or (args.query is not None and args.doi is not None) or ( @@ -171,7 +171,7 @@ def main(): r"Error: Invalid format for --scholar-pages option. Expected: %d or %d-%d, got: " + args.scholar_pages) sys.exit() else: - print("Error: with --query provide also --scholar-pages") + print("Error: with --query or --cites provide also --scholar-pages") sys.exit() else: scholar_pages = 0 diff --git a/README.md b/README.md index cef59d5..386d11c 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,8 @@ You can use only one of the arguments in the following groups - *\-\-query*, *\-\-doi-file*, and *\-\-doi* - *\-\-max-dwn-year* and *and max-dwn-cites* -One of the arguments *\-\-scholar-pages*, *\-\-query *, and* \-\-file* is mandatory -The arguments *\-\-scholar-pages* is mandatory when using *\-\-query * +One of the arguments *\-\-query*, *\-\-doi-file*, *\-\-doi*, or *\-\-cites* is mandatory +The argument *\-\-scholar-pages* is mandatory when using *\-\-query* or *\-\-cites* The argument *\-\-dwn-dir* is mandatory The argument *\-\-journal-filter* require the path of a CSV containing a list of journal name paired with a boolean which indicates whether or not to consider that journal (0: don't consider /1: consider) [Example](https://github.com/ferru97/PyPaperBot/blob/master/file_examples/jurnals.csv)