Skip to content

Commit

Permalink
feat: make --help a lot prettier with rich
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed Oct 10, 2022
1 parent 5068fee commit c07cba6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 12 deletions.
51 changes: 50 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dirsync = "*"
PyYAML = "^6"
Jinja2 = "^3"
pyinstaller = { version = "5.4.1", optional = true }
rich = "*"

[tool.poetry.extras]
pyinstaller = ["pyinstaller"]
Expand Down
11 changes: 0 additions & 11 deletions src/wheel2deb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@ def resolve_command(
help="Directory where debian source packages are generated and built.",
)

option_target_architecture: str = typer.Option(
None,
"--arch",
envvar="WHEEL2DEB_TARGET_ARCH",
help="Architecture of the target debian distribution"
"(only needed if you have repos with a different "
"arch than your host in your sources.list)",
)

option_include_wheels: Optional[List[str]] = typer.Option(
None,
"--include",
Expand Down Expand Up @@ -162,7 +153,6 @@ def default(
verbose: bool = option_verbose,
configuration_path: Optional[Path] = option_configuration,
output_directory: Path = option_output_directory,
target_architecture: str = option_target_architecture,
search_paths: List[Path] = option_search_paths,
include_wheels: Optional[List[str]] = option_include_wheels,
exclude_wheels: Optional[List[str]] = option_exclude_wheels,
Expand All @@ -181,7 +171,6 @@ def convert(
verbose: bool = option_verbose,
configuration_path: Optional[Path] = option_configuration,
output_directory: Path = option_output_directory,
target_architecture: str = option_target_architecture,
search_paths: List[Path] = option_search_paths,
include_wheels: Optional[List[str]] = option_include_wheels,
exclude_wheels: Optional[List[str]] = option_exclude_wheels,
Expand Down

0 comments on commit c07cba6

Please sign in to comment.