diff --git a/README.md b/README.md index 2b86e29..ab1e4f0 100644 --- a/README.md +++ b/README.md @@ -15,21 +15,24 @@ OUTDIR/.latest.pdf` to have the latest kindle PDF visible. Either clone this repo and use `poerty install` and the like or run the nix flake with `nix run github:vale981/kindle_fetch -- [args]`. ``` -usage: kindle_fetch [-h] [--outdir OUTDIR] [--current_file CURRENT_FILE] [--imap_folder IMAP_FOLDER] [--loglevel LOGLEVEL] server user pass_command +usage: kindle_fetch [-h] [--outdir OUTDIR] [--current_file CURRENT_FILE] [--imap_folder IMAP_FOLDER] + [--loglevel LOGLEVEL] + server user pass_command Monitors you email and automatically downloads the kindle PDF notes sent to it. positional arguments: server the IMAP server to connect to user the IMAP username - pass_command A shell command that returns the password to the server. + pass_command a shell command that returns the password to the server options: -h, --help show this help message and exit - --outdir OUTDIR The kindle note PDFs will be saved into `OUTDIR/[name].pdf`. (default: ~/kindle_dump) + --outdir OUTDIR the kindle note PDFs will be saved into `OUTDIR/[name].pdf` (default: ~/kindle_dump) --current_file CURRENT_FILE - The latest downloaded file will be copied to `OUTDIR/[current_file] (default: .latest.pdf) + the latest downloaded file will be copied to `OUTDIR/[current_file] (default: + .latest.pdf) --imap_folder IMAP_FOLDER - The IMAP folder to monitor for new messages. (default: INBOX) - --loglevel LOGLEVEL The python logging level to use. (default: info) + the IMAP folder to monitor for new messages (default: INBOX) + --loglevel LOGLEVEL the python logging level to use (default: info) ``` diff --git a/kindle_fetch/kindle_fetch.py b/kindle_fetch/kindle_fetch.py index 1fb6592..f427cca 100644 --- a/kindle_fetch/kindle_fetch.py +++ b/kindle_fetch/kindle_fetch.py @@ -168,30 +168,30 @@ def parse_args_and_configure_logging(): parser.add_argument( "pass_command", type=str, - help="A shell command that returns the password to the server.", + help="a shell command that returns the password to the server", ) parser.add_argument( "--outdir", type=str, - help="The kindle note PDFs will be saved into `OUTDIR/[name].pdf`.", + help="the kindle note PDFs will be saved into `OUTDIR/[name].pdf`", default="~/kindle_dump", ) parser.add_argument( "--current_file", type=str, - help="The latest downloaded file will be copied to `OUTDIR/[current_file]", + help="the latest downloaded file will be copied to `OUTDIR/[current_file]", default=".latest.pdf", ) parser.add_argument( "--imap_folder", type=str, - help="The IMAP folder to monitor for new messages.", + help="the IMAP folder to monitor for new messages", default="INBOX", ) parser.add_argument( "--loglevel", default="info", - help="The python logging level to use.", + help="the python logging level to use", ) args = parser.parse_args()