Skip to content

Commit c9f57d7

Browse files
committed
improve help commands
1 parent 5ca2554 commit c9f57d7

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

bittensor_cli/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7239,15 +7239,15 @@ def stake_set_claim_type(
72397239
[bold]Claim Types:[/bold]
72407240
• [green]Swap[/green]: Future Root Alpha Emissions are swapped to TAO and added to root stake (default)
72417241
• [yellow]Keep[/yellow]: Future Root Alpha Emissions are kept as Alpha tokens
7242-
• [cyan]Keep Specific[/cyan]: Keep specific subnets as Alpha, swap others to TAO
7242+
• [cyan]Keep Specific[/cyan]: Keep specific subnets as Alpha, swap others to TAO. You can use this type by selecting the netuids.
72437243
72447244
USAGE:
72457245
7246-
[green]$[/green] btcli stake claim
7247-
[green]$[/green] btcli stake claim keep
7248-
[green]$[/green] btcli stake claim swap
7249-
[green]$[/green] btcli stake claim keep --netuids 1-5,10,20-30
7250-
[green]$[/green] btcli stake claim swap --netuids 1-30
7246+
[green]$[/green] btcli stake claim [cyan](Full wizard)[/cyan]
7247+
[green]$[/green] btcli stake claim keep [cyan](Keep all subnets)[/cyan]
7248+
[green]$[/green] btcli stake claim swap [cyan](Swap all subnets)[/cyan]
7249+
[green]$[/green] btcli stake claim keep --netuids 1-5,10,20-30 [cyan](Keep specific subnets)[/cyan]
7250+
[green]$[/green] btcli stake claim swap --netuids 1-30 [cyan](Swap specific subnets)[/cyan]
72517251
72527252
With specific wallet:
72537253

bittensor_cli/src/commands/stake/claim.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ async def set_claim_type(
148148
new_claim_info = {"type": claim_type}
149149

150150
if _claim_types_equal(current_claim_info, new_claim_info):
151-
console.print(
152-
f"Claim type already set to {_format_claim_type_display(new_claim_info)}. No change needed."
153-
)
151+
msg = f"Claim type already set to {_format_claim_type_display(new_claim_info)}. \nNo change needed."
152+
console.print(msg)
154153
if json_output:
155154
json_console.print(
156155
json.dumps(
@@ -540,7 +539,9 @@ async def _ask_for_claim_types(
540539
if primary_choice == "cancel":
541540
return None
542541

543-
apply_to_all = Confirm.ask("\nApply to ALL subnets?", default=True)
542+
apply_to_all = Confirm.ask(
543+
f"\nSet {primary_choice.capitalize()} to ALL subnets?", default=True
544+
)
544545

545546
if apply_to_all:
546547
return {"type": primary_choice.capitalize()}

0 commit comments

Comments
 (0)