Skip to content

Commit 293e349

Browse files
committed
Fix help
1 parent 96539e9 commit 293e349

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bittensor_cli/cli.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class CLIManager:
622622
wallet_app: typer.Typer
623623
subnets_app: typer.Typer
624624
weights_app: typer.Typer
625-
utils_app = typer.Typer(epilog=_epilog)
625+
utils_app: typer.Typer
626626
view_app: typer.Typer
627627
asyncio_runner = asyncio
628628

@@ -695,6 +695,7 @@ def __init__(self):
695695
self.weights_app = typer.Typer(epilog=_epilog)
696696
self.view_app = typer.Typer(epilog=_epilog)
697697
self.liquidity_app = typer.Typer(epilog=_epilog)
698+
self.utils_app = typer.Typer(epilog=_epilog)
698699

699700
# config alias
700701
self.app.add_typer(
@@ -1052,6 +1053,7 @@ def __init__(self):
10521053
)(self.liquidity_remove)
10531054

10541055
# utils app
1056+
self.utils_app.command("convert")(self.convert)
10551057
self.utils_app.command("latency")(self.best_connection)
10561058

10571059
def generate_command_tree(self) -> Tree:
@@ -6302,7 +6304,6 @@ def liquidity_modify(
63026304
)
63036305

63046306
@staticmethod
6305-
@utils_app.command("convert")
63066307
def convert(
63076308
from_rao: Optional[str] = typer.Option(
63086309
None, "--rao", help="Convert amount from Rao"
@@ -6340,8 +6341,8 @@ def best_connection(
63406341
help="Network(s) to test for the best connection",
63416342
),
63426343
):
6343-
f"""
6344-
This command will give you the latency of all finney-like network in additional to any additional networks you specify via the {arg__("--network")} flag
6344+
"""
6345+
This command will give you the latency of all finney-like network in additional to any additional networks you specify via the '--network' flag
63456346
63466347
The results are three-fold. One column is the overall time to initialise a connection, send the requests, and wait for the results. The second column measures single ping-pong speed once connected. The third makes a real world call to fetch the chain head.
63476348

0 commit comments

Comments
 (0)