diff --git a/src/feather/cli.py b/src/feather/cli.py index ae9a75a..ab591f8 100644 --- a/src/feather/cli.py +++ b/src/feather/cli.py @@ -3,6 +3,7 @@ import argparse import asyncio +import textwrap from feather.config import Config from feather.feather import FeatherApp @@ -10,12 +11,20 @@ from feather.feather import FeatherApp def main(): parser = argparse.ArgumentParser( prog="feather", - description="file-based RSS reader client" + description="file-based RSS reader client", + formatter_class=argparse.RawTextHelpFormatter ) parser.add_argument( "action", choices=("sync", "sync-up", "sync-down", "daemon", "regenerate", "clear-data"), - help="sync: perform a full synchronization with the server; sync-up: only synchronize local changes to the server (e.g. articles read locally); sync-down: only synchronize remote change from the server (e.g. new articles or articles read from another device); daemon: start in daemon mode (will keep performing synchronizations periodically until process is stopped); regenerate: regenerate all HTML files from the local data; clear-data: remove all local data", + help=textwrap.dedent("""\ + sync: perform a full synchronization with the server + sync-up: only synchronize local changes to the server (e.g. articles read locally) + sync-down: only synchronize remote change from the server (e.g. new articles or articles read from another device) + daemon: start in daemon mode (will keep performing synchronizations periodically until process is stopped) + regenerate: regenerate all HTML files from the local data + clear-data: remove all local data + """), ) args = parser.parse_args()