Skip to content

Commit 04f1d92

Browse files
authored
Improve help text formatting in CLI options
Added \b
1 parent 0378d17 commit 04f1d92

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

python/cocoindex/cli.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ def ls(app_target: str | None) -> None:
185185
def show(app_flow_specifier: str, color: bool, verbose: bool) -> None:
186186
"""
187187
Show the flow spec and schema.
188-
188+
189189
`APP_FLOW_SPECIFIER`: Specifies the application and optionally the target flow.
190190
Can be one of the following formats:
191+
\b
191192
- `path/to/your_app.py`
192193
- `an_installed.module_name`
193194
- `path/to/your_app.py:SpecificFlowName`
@@ -323,7 +324,7 @@ def setup(app_target: str, force: bool, reset: bool) -> None:
323324
def drop(app_target: str | None, flow_name: tuple[str, ...], force: bool) -> None:
324325
"""
325326
Drop the backend setup for flows.
326-
327+
\b
327328
Modes of operation:
328329
1. Drop all flows defined in an app: `cocoindex drop <APP_TARGET>`
329330
2. Drop specific named flows: `cocoindex drop <APP_TARGET> [FLOW_NAME...]`
@@ -505,7 +506,7 @@ def evaluate(
505506
506507
Instead of updating the index, it dumps what should be indexed to files.
507508
Mainly used for evaluation purpose.
508-
509+
\b
509510
`APP_FLOW_SPECIFIER`: Specifies the application and optionally the target flow.
510511
Can be one of the following formats:
511512
- `path/to/your_app.py`
@@ -811,4 +812,4 @@ def _flow_by_name(name: str | None) -> flow.Flow:
811812

812813

813814
if __name__ == "__main__":
814-
cli()
815+
cli()

0 commit comments

Comments
 (0)