From f45728d17c26d0f2789c4db5f91af8b9e845e502 Mon Sep 17 00:00:00 2001 From: wunder957 Date: Tue, 29 Aug 2023 16:21:56 +0800 Subject: [PATCH] Update docs --- README.md | 5 ++--- duetector/cli/daemon.py | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1f1cc01..61be0fd 100644 --- a/README.md +++ b/README.md @@ -119,11 +119,10 @@ duectl generate-dynamic-config --help duectl generate-config ``` -更进一步的,后台运行可以使用`duectl-daemon start`命令,这将会在后台运行一个守护进程,你可以使用`duectl-daemon stop`来停止它 +更进一步的,后台运行可以使用 `duectl-daemon start`命令,这将会在后台运行一个守护进程,你可以使用 `duectl-daemon stop`来停止它 ```bash -$ duectl-daemon --help - +duectl-daemon --help Usage: duectl-daemon [OPTIONS] COMMAND [ARGS]... Options: diff --git a/duetector/cli/daemon.py b/duetector/cli/daemon.py index ef6eb73..e148339 100644 --- a/duetector/cli/daemon.py +++ b/duetector/cli/daemon.py @@ -19,12 +19,12 @@ @click.option( "--rotate_log", default=True, - help="Rotate log file when daemon started, default: True", + help="Rotate log file when process started, default: True", ) @click.pass_context def start(ctx, workdir, loglevel, rotate_log): """ - Start a daemon of command `duectl start`, + Start a background process of command `duectl start`, All arguments after `--` will be passed to `duectl start`, e.g. `duectl-daemon start -- --config /path/to/config` """ @@ -36,7 +36,7 @@ def start(ctx, workdir, loglevel, rotate_log): f"Start duetector daemon with command: {' '.join(cmd)}, \n" f"workdir: {workdir}, \n" f"loglevel: {loglevel}, \n" - f"rotate_log: {rotate_log}\n" + f"rotate_log: {rotate_log}" ) Daemon( cmd=cmd,