Skip to content

Commit 9ae2947

Browse files
committed
fix: help messages for --reset
1 parent 19b8b90 commit 9ae2947

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/core/cli-commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ cocoindex server [OPTIONS] APP_TARGET
117117
| `-cl, --cors-local INTEGER` | Allow `http://localhost:<port>` to access the server. |
118118
| `-L, --live-update` | Continuously watch changes from data sources and apply to the target index. |
119119
| `--setup` | Automatically setup backends for the flow if it's not setup yet. |
120-
| `--reset` | Drop existing setup before starting server (equivalent to running 'cocoindex drop' first). --reset implies --setup. |
120+
| `--reset` | Drop existing setup before starting server (equivalent to running 'cocoindex drop' first). `--reset` implies `--setup`. |
121121
| `--reexport` | Reexport to targets even if there's no change. |
122122
| `-f, --force` | Force setup without confirmation prompts. |
123123
| `-q, --quiet` | Avoid printing anything to the standard output, e.g. statistics. |
@@ -207,7 +207,7 @@ cocoindex update [OPTIONS] APP_FLOW_SPECIFIER
207207
| `-L, --live` | Continuously watch changes from data sources and apply to the target index. |
208208
| `--reexport` | Reexport to targets even if there's no change. |
209209
| `--setup` | Automatically setup backends for the flow if it's not setup yet. |
210-
| `--reset` | Drop existing setup before updating (equivalent to running 'cocoindex drop' first). |
210+
| `--reset` | Drop existing setup before updating (equivalent to running 'cocoindex drop' first). `--reset` implies `--setup`. |
211211
| `-f, --force` | Force setup without confirmation prompts. |
212212
| `-q, --quiet` | Avoid printing anything to the standard output, e.g. statistics. |
213213
| `--help` | Show this message and exit. |

python/cocoindex/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def drop(app_target: str | None, flow_name: tuple[str, ...], force: bool) -> Non
405405
is_flag=True,
406406
show_default=True,
407407
default=False,
408-
help="Drop existing setup before updating (equivalent to running 'cocoindex drop' first).",
408+
help="Drop existing setup before updating (equivalent to running 'cocoindex drop' first). `--reset` implies `--setup`.",
409409
)
410410
@click.option(
411411
"-f",
@@ -569,7 +569,7 @@ def evaluate(
569569
is_flag=True,
570570
show_default=True,
571571
default=False,
572-
help="Drop existing setup before starting server (equivalent to running 'cocoindex drop' first). --reset implies --setup.",
572+
help="Drop existing setup before starting server (equivalent to running 'cocoindex drop' first). `--reset` implies `--setup`.",
573573
)
574574
@click.option(
575575
"--reexport",

0 commit comments

Comments
 (0)