From 95df8568281005a86ffe9609ed6568167d51022e Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Fri, 22 Nov 2024 14:28:58 -0500 Subject: [PATCH] Revert "show defaults in `--help`" This reverts commit 5d7f4868e068db871fae12b79640e266c9eb2160. --- chia/cmds/gh.py | 58 ++++++------------------------------------------- 1 file changed, 7 insertions(+), 51 deletions(-) diff --git a/chia/cmds/gh.py b/chia/cmds/gh.py index c32b3ce48178..e06548413728 100644 --- a/chia/cmds/gh.py +++ b/chia/cmds/gh.py @@ -86,75 +86,31 @@ def gh_group() -> None: ) class TestCMD: workflow_id: ClassVar[str] = "test.yml" - owner: str = option( - "-o", - "--owner", - help="Owner of the repo", - type=str, - default="Chia-Network", - show_default=True, - ) - repository: str = option( - "-r", - "--repository", - help="Repository name", - type=str, - default="chia-blockchain", - show_default=True, - ) + owner: str = option("-o", "--owner", help="Owner of the repo", type=str, default="Chia-Network") + repository: str = option("-r", "--repository", help="Repository name", type=str, default="chia-blockchain") ref: Optional[str] = option( "-f", "--ref", help="Branch or tag name (commit SHA not supported), if not specified will push HEAD to a temporary branch", type=str, default=None, - show_default=True, - ) - per: Per = option( - "-p", - "--per", - help="Per", - type=click.Choice(["directory", "file"]), - default="directory", - show_default=True, ) + per: Per = option("-p", "--per", help="Per", type=click.Choice(["directory", "file"]), default="directory") only: Optional[Path] = option( - "-o", - "--only", - help="Only run this item, a file or directory depending on --per", - type=Path, - show_default=True, - ) - duplicates: int = option( - "-d", - "--duplicates", - help="Number of duplicates", - type=int, - default=1, - show_default=True, + "-o", "--only", help="Only run this item, a file or directory depending on --per", type=Path ) + duplicates: int = option("-d", "--duplicates", help="Number of duplicates", type=int, default=1) oses: Sequence[Oses] = option( "--os", help="Operating systems to run on", type=click.Choice(all_oses), multiple=True, default=all_oses, - show_default=True, ) full_python_matrix: bool = option( - "--full-python-matrix/--default-python-matrix", - help="Run on all Python versions", - default=False, - show_default=True, - ) - remote: str = option( - "-r", - "--remote", - help="Name of git remote", - type=str, - default="origin", - show_default=True, + "--full-python-matrix/--default-python-matrix", help="Run on all Python versions", default=False ) + remote: str = option("-r", "--remote", help="Name of git remote", type=str, default="origin") async def run(self) -> None: await self.check_only()