From 0a4488b9b3fe5589a88343732d92a8b1ed505784 Mon Sep 17 00:00:00 2001 From: ibraheem-opentensor Date: Fri, 11 Apr 2025 11:04:30 -0700 Subject: [PATCH 1/2] Fixes help msg of safe staking help (in stake add etc) --- bittensor_cli/cli.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 84497ce64..5a4740b8e 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -266,7 +266,8 @@ class Options: None, "--safe-staking/--no-safe-staking", "--safe/--unsafe", - help="Enable or disable safe staking mode (default: enabled).", + show_default=False, + help="Enable or disable safe staking mode [dim](default: enabled)[/dim].", ) allow_partial_stake = typer.Option( None, @@ -274,7 +275,8 @@ class Options: "--partial/--no-partial", "--allow/--not-allow", "--allow-partial/--not-partial", - help="Enable or disable partial stake mode (default: disabled).", + show_default=False, + help="Enable or disable partial stake mode [dim](default: disabled)[/dim].", ) dashboard_path = typer.Option( None, @@ -1184,12 +1186,14 @@ def set_config( "--safe-staking/--no-safe-staking", "--safe/--unsafe", help="Enable or disable safe staking mode.", + show_default=False, ), allow_partial_stake: Optional[bool] = typer.Option( None, "--allow-partial-stake/--no-allow-partial-stake", "--partial/--no-partial", "--allow/--not-allow", + show_default=False, ), dashboard_path: Optional[str] = Options.dashboard_path, ): From 118af011e420f98f04b6a179ae9d4ecb8a8a0135 Mon Sep 17 00:00:00 2001 From: Ibraheem <165814940+ibraheem-abe@users.noreply.github.com> Date: Sat, 12 Apr 2025 19:55:31 -0600 Subject: [PATCH 2/2] Updates percentage value --- bittensor_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 5a4740b8e..75606c306 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -259,7 +259,7 @@ class Options: "--slippage-tolerance", "--tolerance", "--rate-tolerance", - help="Set the rate tolerance percentage for transactions (default: 0.05%).", + help="Set the rate tolerance percentage for transactions (default: 0.05 for 5%).", callback=validate_rate_tolerance, ) safe_staking = typer.Option(