Skip to content

Commit d3d3950

Browse files
committed
Handle html
1 parent 3b7025d commit d3d3950

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bittensor_cli/cli.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5053,7 +5053,16 @@ def subnets_price(
50535053
[green]$[/green] btcli subnets price --netuids 1,2,3,4 --html
50545054
"""
50555055
if json_output and html_output:
5056-
print_error("Cannot specify both `--json-output` and `--html`")
5056+
print_error(
5057+
f"Cannot specify both [{COLORS.G.ARG}]--json-output[/{COLORS.G.ARG}] "
5058+
f"and [{COLORS.G.ARG}]--html[/{COLORS.G.ARG}]"
5059+
)
5060+
return
5061+
if current_only and html_output:
5062+
print_error(
5063+
f"Cannot specify both [{COLORS.G.ARG}]--current[/{COLORS.G.ARG}] "
5064+
f"and [{COLORS.G.ARG}]--html[/{COLORS.G.ARG}]"
5065+
)
50575066
return
50585067
self.verbosity_handler(quiet=quiet, verbose=verbose, json_output=json_output)
50595068

0 commit comments

Comments
 (0)