Skip to content

Commit

Permalink
add missing CLI argument descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchetti committed Aug 27, 2024
1 parent 0726ffc commit 876dd00
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions rsconnect/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,6 @@ def _warn_on_ignored_requirements(directory: str, requirements_file_name: str):
)
@click.option(
"--override-python-version",
"-op",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
Expand Down Expand Up @@ -1042,7 +1041,6 @@ def deploy_notebook(
)
@click.option(
"--override-python-version",
"-op",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
Expand Down Expand Up @@ -1251,7 +1249,6 @@ def deploy_manifest(
)
@click.option(
"--override-python-version",
"-op",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
Expand Down Expand Up @@ -1614,7 +1611,6 @@ def generate_deploy_python(app_mode: AppMode, alias: str, min_version: str, desc
)
@click.option(
"--override-python-version",
"-op",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
Expand Down Expand Up @@ -1792,7 +1788,6 @@ def write_manifest():
)
@click.option(
"--override-python-version",
"-op",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
Expand Down Expand Up @@ -1885,6 +1880,13 @@ def write_manifest_notebook(
help="Path to Python interpreter whose environment should be used. "
+ "The Python environment must have the rsconnect package installed.",
)
@click.option(
"--override-python-version",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
)
)
@click.option(
"--force-generate",
"-g",
Expand Down Expand Up @@ -2009,6 +2011,13 @@ def write_manifest_voila(
help="Path to Python interpreter whose environment should be used. "
+ "The Python environment must have the rsconnect package installed.",
)
@click.option(
"--override-python-version",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
)
)
@click.option(
"--force-generate",
"-g",
Expand Down Expand Up @@ -2190,6 +2199,13 @@ def generate_write_manifest_python(app_mode: AppMode, alias: str, desc: Optional
help="Path to Python interpreter whose environment should be used. "
+ "The Python environment must have the rsconnect-python package installed.",
)
@click.option(
"--override-python-version",
help=(
"An optional python version to use instead of the version from "
"the detected environment."
)
)
@click.option(
"--force-generate",
"-g",
Expand All @@ -2211,6 +2227,7 @@ def manifest_writer(
entrypoint: Optional[str],
exclude: tuple[str, ...],
python: Optional[str],
override_python_version: Optional[str],
force_generate: bool,
verbose: int,
directory: str,
Expand All @@ -2226,6 +2243,7 @@ def manifest_writer(
entrypoint,
exclude,
python,
override_python_version,
force_generate,
verbose,
directory,
Expand Down

0 comments on commit 876dd00

Please sign in to comment.